cfq: Make use of service count to estimate the rb_key offset
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>
Thu, 26 Nov 2009 08:14:11 +0000 (09:14 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 26 Nov 2009 08:14:11 +0000 (09:14 +0100)
commit3586e917f2c7df769d173c4ec99554cb40a911e5
treed72ad5ca6c17a3db628734e36b22d79065e0eb49
parent32a87c0114f37871aefb12a30de3e0c3300e3646
cfq: Make use of service count to estimate the rb_key offset

For the moment, different workload cfq queues are put into different
service trees. But CFQ still uses "busy_queues" to estimate rb_key
offset when inserting a cfq queue into a service tree. I think this
isn't appropriate, and it should make use of service tree count to do
this estimation. This patch is for for-2.6.33 branch.

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