cfq: set workload as expired if it doesn't have any slice left
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>
Tue, 15 Dec 2009 09:08:45 +0000 (10:08 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 15 Dec 2009 09:08:45 +0000 (10:08 +0100)
commit66ae291978177d5c012015f12b8fbc76dc7d0965
tree1351d66beea2b0b2300a7491ca8d9ffb83578e34
parent82bbbf28db4beefcd8b897800153e21378270cd1
cfq: set workload as expired if it doesn't have any slice left

When a group is resumed, if it doesn't have workload slice left,
we should set workload_expires as expired. Otherwise, we might
start from where we left in previous group by error.
Thanks the idea from Corrado.

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