aboutsummaryrefslogtreecommitdiffstats
path: root/block/cfq-iosched.c
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2009-12-03 12:59:37 -0500
committerJens Axboe <jens.axboe@oracle.com>2009-12-03 13:28:51 -0500
commitbf7919371025412978268efca4b09dd847acb395 (patch)
treef6144bf301f00f53f150f4213928f063232faaa1 /block/cfq-iosched.c
parent753c89130c52b96e66e5ceff19bd1336de9a5ce8 (diff)
blkio: Set must_dispatch only if we decided to not dispatch the request
o must_dispatch flag should be set only if we decided not to run the queue and dispatch the request. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r--block/cfq-iosched.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index f5b59e18ebd3..15b53616516a 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -2490,9 +2490,9 @@ cfq_rq_enqueued(struct cfq_data *cfqd, struct cfq_queue *cfqq,
2490 if (blk_rq_bytes(rq) > PAGE_CACHE_SIZE || 2490 if (blk_rq_bytes(rq) > PAGE_CACHE_SIZE ||
2491 cfqd->busy_queues > 1) { 2491 cfqd->busy_queues > 1) {
2492 del_timer(&cfqd->idle_slice_timer); 2492 del_timer(&cfqd->idle_slice_timer);
2493 __blk_run_queue(cfqd->queue); 2493 __blk_run_queue(cfqd->queue);
2494 } 2494 } else
2495 cfq_mark_cfqq_must_dispatch(cfqq); 2495 cfq_mark_cfqq_must_dispatch(cfqq);
2496 } 2496 }
2497 } else if (cfq_should_preempt(cfqd, cfqq, rq)) { 2497 } else if (cfq_should_preempt(cfqd, cfqq, rq)) {
2498 /* 2498 /*