From: Shaohua Li Date: Fri, 4 Dec 2009 12:12:06 +0000 (+0100) Subject: cfq-iosched: make nonrot check logic consistent X-Git-Tag: MMI-PSA29.97-13-9~25745^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c764b7a654668dd04905841d6024f7b6aa843a5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cfq-iosched: make nonrot check logic consistent cfq_arm_slice_timer() has logic to disable idle window for SSD device. The same thing should be done at cfq_select_queue() too, otherwise we will still see idle window. This makes the nonrot check logic consistent in cfq. Tests in a intel SSD with low_latency knob close, below patch can triple disk thoughput for muti-thread sequential read. Signed-off-by: Shaohua Li Signed-off-by: Jens Axboe --- diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 43ec3340cb58..b00ca4c86e25 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -1796,7 +1796,8 @@ static bool cfq_should_idle(struct cfq_data *cfqd, struct cfq_queue *cfqq) return false; /* We do for queues that were marked with idle window flag. */ - if (cfq_cfqq_idle_window(cfqq)) + if (cfq_cfqq_idle_window(cfqq) && + !(blk_queue_nonrot(cfqd->queue) && cfqd->hw_tag)) return true; /*