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)
commit41647e7a91338dba21773a16af7474ef95e0929e
tree9520ffbb853af141af5b802fa00f5a2e4ed783bd
parent3dde36ddea3e07dd025c4c1ba47edec91606fec0
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