aboutsummaryrefslogtreecommitdiffstats
path: root/block/cfq-iosched.c
diff options
context:
space:
mode:
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>2009-12-10 03:38:39 -0500
committerJens Axboe <jens.axboe@oracle.com>2009-12-10 03:38:39 -0500
commit554554f60ad619e1efab01897208bc320b81d9da (patch)
treeb240b0e65dc763c6c2f7b5661f59ad4bcb0385b3 /block/cfq-iosched.c
parentedc71131c4dc6cc73e2a24aa0a7a79cfce738f12 (diff)
cfq: Remove wait_request flag when idle time is being deleted
Remove wait_request flag when idle time is being deleted, otherwise it'll hit this path every time when a request is enqueued. Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r--block/cfq-iosched.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 69ecee7f4ad4..96f59ae5b6e9 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -3202,6 +3202,7 @@ cfq_rq_enqueued(struct cfq_data *cfqd, struct cfq_queue *cfqq,
3202 if (blk_rq_bytes(rq) > PAGE_CACHE_SIZE || 3202 if (blk_rq_bytes(rq) > PAGE_CACHE_SIZE ||
3203 cfqd->busy_queues > 1) { 3203 cfqd->busy_queues > 1) {
3204 del_timer(&cfqd->idle_slice_timer); 3204 del_timer(&cfqd->idle_slice_timer);
3205 cfq_clear_cfqq_wait_request(cfqq);
3205 __blk_run_queue(cfqd->queue); 3206 __blk_run_queue(cfqd->queue);
3206 } else 3207 } else
3207 cfq_mark_cfqq_must_dispatch(cfqq); 3208 cfq_mark_cfqq_must_dispatch(cfqq);