block cfq: compensate preempted queue even if it has no slice assigned
authorShaohua Li <shaohua.li@intel.com>
Fri, 14 Jan 2011 07:41:03 +0000 (08:41 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 14 Jan 2011 07:41:03 +0000 (08:41 +0100)
commitc553f8e335c00a7cff3ab3f13e793b13d3f2207f
treef9371c9e1191711dd2e774e04d99f3fa90d697fa
parentf8ae6e3eb8251be32c6e913393d9f8d9e0609489
block cfq: compensate preempted queue even if it has no slice assigned

If a queue is preempted before it gets slice assigned, the queue doesn't get
compensation, which looks unfair. For such queue, we compensate it for a whole
slice.

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