summaryrefslogtreecommitdiff
path: root/drivers/block/ll_rw_blk.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-10-28 08:30:39 +0200
committerJens Axboe <axboe@nelson.home.kernel.dk>2005-10-28 08:48:23 +0200
commit64521d1a3ba7cc7fe4ab5640da83d88144f05340 (patch)
tree566f61ed9bbdc1c6ad245cb186fdd8c810a58f25 /drivers/block/ll_rw_blk.c
parentcb98fc8bb9c141009e2bda99c0db39d387e142cf (diff)
downloadlwn-64521d1a3ba7cc7fe4ab5640da83d88144f05340.tar.gz
lwn-64521d1a3ba7cc7fe4ab5640da83d88144f05340.zip
[BLOCK] elevator switch fixes/cleanup
- 100msec sleep is a little excessive, lots of requests can complete in that timeframe. Use 10msec instead. - Rename QUEUE_FLAG_BYPASS to QUEUE_FLAG_ELVSWITCH to indicate what is going on. Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'drivers/block/ll_rw_blk.c')
-rw-r--r--drivers/block/ll_rw_blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c
index f7c9931cb380..fc12d019b19d 100644
--- a/drivers/block/ll_rw_blk.c
+++ b/drivers/block/ll_rw_blk.c
@@ -1940,7 +1940,7 @@ get_rq:
if (rl->count[rw] >= queue_congestion_on_threshold(q))
set_queue_congested(q, rw);
- priv = !test_bit(QUEUE_FLAG_BYPASS, &q->queue_flags);
+ priv = !test_bit(QUEUE_FLAG_ELVSWITCH, &q->queue_flags);
if (priv)
rl->elvpriv++;