]> err.no Git - linux-2.6/commit
cfq: async queue allocation per priority
authorVasily Tarasov <vtaras@openvz.org>
Fri, 20 Jul 2007 08:06:38 +0000 (10:06 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 20 Jul 2007 08:06:38 +0000 (10:06 +0200)
commitc2dea2d1fdbce86942dba0a968c523d8b7858bb5
treec876b93785ee3b25c341be0dd5080a5176f27736
parent9a79b2274186fade17134929d4f85b70d59a3840
cfq: async queue allocation per priority

If we have two processes with different ioprio_class, but the same
ioprio_data, their async requests will fall into the same queue. I guess
such behavior is not expected, because it's not right to put real-time
requests and best-effort requests in the same queue.

The attached patch fixes the problem by introducing additional *cfqq
fields on cfqd, pointing to per-(class,priority) async queues.

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