cfq-iosched: tweak kick logic a bit more
authorJens Axboe <jens.axboe@oracle.com>
Wed, 15 Apr 2009 10:12:46 +0000 (12:12 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 15 Apr 2009 10:12:46 +0000 (12:12 +0200)
commit2d870722965211de072bb36b446a4df99dae07e1
treee9b884d9969157f87e6a88a0de147af4022301e5
parent40bb54d197a10fe86d73073ee8202ba2812a05fa
cfq-iosched: tweak kick logic a bit more

We only kick the dispatch for an idling queue, if we think it's a
(somewhat) fully merged request. Also allow a kick if we have other
busy queues in the system, since we don't want to risk waiting for
a potential merge in that case. It's better to get some work done and
proceed.

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