cfq-iosched: don't schedule a dispatch for a non-idle queue
authorShaohua Li <shaohua.li@intel.com>
Tue, 9 Nov 2010 13:51:13 +0000 (14:51 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 9 Nov 2010 13:51:13 +0000 (14:51 +0100)
commit2b9408a45978dcda77407859148deeccf403c372
tree52fc549e7cc879c6dea98554f75da24df31c07cf
parent8e1ac6655104bc6e1e79d67e2df88cc8fa9b6e07
cfq-iosched: don't schedule a dispatch for a non-idle queue

Vivek suggests we don't need schedule a dispatch when an idle queue
becomes nonidle. And he is right, cfq_should_preempt already covers
the logic.

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