block cfq: select new workload if priority changed
authorShaohua Li writes <shaohua.li@intel.com>
Mon, 13 Dec 2010 13:32:22 +0000 (14:32 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 13 Dec 2010 13:32:22 +0000 (14:32 +0100)
commite4ea0c16a85d221ebcc3a21f32e321440459e0fc
tree47acf4da84f9a448e6eb6172a5440ccc60696ed9
parent760701bfe14faee8ea0608a9cab2046071d98a39
block cfq: select new workload if priority changed

If priority is changed, continuing to check workload_expires and service tree
count of the previous workload does not make sense. We should always choose
the workload with lowest key of new priority in such case.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/cfq-iosched.c