cfq-iosched: Do not merge queues of BE and IDLE classes
authorDivyesh Shah <dpshah@google.com>
Thu, 25 Mar 2010 14:45:57 +0000 (15:45 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 25 Mar 2010 14:46:38 +0000 (15:46 +0100)
commit39c01b219fd30c74869b6fc8749f7900f04e9ef6
tree7ce59210c28e2b53daf2957174d3ae164701b181
parentb1ffe737f5b743115ee46ffb59e338e580c54902
cfq-iosched: Do not merge queues of BE and IDLE classes

Even if they are found to be co-operating.

The prio_trees do not have any IDLE cfqqs on them. cfq_close_cooperator()
is called from cfq_select_queue() and cfq_completed_request(). The latter
ensures that the close cooperator code does not get invoked if the current
cfqq is of class IDLE but the former doesn't seem to have any such checks.
So an IDLE cfqq may get merged with a BE cfqq from the same group which
should be avoided.

Signed-off-by: Divyesh Shah<dpshah@google.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c