Skip to content

Commit

Permalink
cfq: Remove wait_request flag when idle time is being deleted
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gui Jianfeng authored and Jens Axboe committed Dec 10, 2009
1 parent edc7113 commit 554554f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3202,6 +3202,7 @@ cfq_rq_enqueued(struct cfq_data *cfqd, struct cfq_queue *cfqq,
if (blk_rq_bytes(rq) > PAGE_CACHE_SIZE ||
cfqd->busy_queues > 1) {
del_timer(&cfqd->idle_slice_timer);
cfq_clear_cfqq_wait_request(cfqq);
__blk_run_queue(cfqd->queue);
} else
cfq_mark_cfqq_must_dispatch(cfqq);
Expand Down

0 comments on commit 554554f

Please sign in to comment.