]> git.baikalelectronics.ru Git - kernel.git/commit
cfq-iosched: rethink seeky detection for SSDs
authorCorrado Zoccolo <czoccolo@gmail.com>
Sat, 27 Feb 2010 18:45:40 +0000 (19:45 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Sun, 28 Feb 2010 18:41:25 +0000 (19:41 +0100)
commit78077f955ca8dbb649d3c4f10f9a1831a03b709b
tree9520ffbb853af141af5b802fa00f5a2e4ed783bd
parent0ea54ec7bedaa939cede183e55219d58e2085044
cfq-iosched: rethink seeky detection for SSDs

CFQ currently applies the same logic of detecting seeky queues and
grouping them together for rotational disks as well as SSDs.
For SSDs, the time to complete a request doesn't depend on the
request location, but only on the size.
This patch therefore changes the criterion to group queues by
request size in case of SSDs, in order to achieve better fairness.

Signed-off-by: Corrado Zoccolo <czoccolo@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c