cfq-iosched: fix async queue behaviour
authorJens Axboe <jens.axboe@oracle.com>
Tue, 10 Jul 2007 20:11:00 +0000 (22:11 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Aug 2007 21:27:41 +0000 (14:27 -0700)
commit2c658236a4e1005185668ef58463c40db7ef642e
treebf3121d3d89b973b8cf6be02198b108a0b618a1e
parentcba95c85a95333df7f7875ef15fd24fcd797348a
cfq-iosched: fix async queue behaviour

With the cfq_queue hash removal, we inadvertently got rid of the
async queue sharing. This was not intentional, in fact CFQ purposely
shares the async queue per priority level to get good merging for
async writes.

So put some logic in cfq_get_queue() to track the shared queues.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
block/cfq-iosched.c
include/linux/ioprio.h