]> git.baikalelectronics.ru Git - kernel.git/commit
cfq-iosched: make nonrot check logic consistent
authorShaohua Li <shaohua.li@intel.com>
Fri, 4 Dec 2009 12:12:06 +0000 (13:12 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 4 Dec 2009 12:12:06 +0000 (13:12 +0100)
commitf5fc3ee3e8c64c11f233460ca6cc50b119733d07
tree68b7c611f5e98bab3c781ecc775a0ecf46c43b61
parent971a5a4475c35054cd1269a23135cf00bbea90db
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 <shaohua.li@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c