]> git.baikalelectronics.ru Git - kernel.git/commit
block, cfq: move cfqd->cic_index to q->id
authorTejun Heo <tj@kernel.org>
Tue, 13 Dec 2011 23:33:37 +0000 (00:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Dec 2011 23:33:37 +0000 (00:33 +0100)
commit405642c236189b6f19c72c9f9c4fcb60a337c26d
tree773987c8cbec56745d46f46382ad268ed91adf98
parent510b407b8f9904f14119b39d0ff32420c7d00431
block, cfq: move cfqd->cic_index to q->id

cfq allocates per-queue id using ida and uses it to index cic radix
tree from io_context.  Move it to q->id and allocate on queue init and
free on queue release.  This simplifies cfq a bit and will allow for
further improvements of io context life-cycle management.

This patch doesn't introduce any functional difference.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-sysfs.c
block/blk.h
block/cfq-iosched.c
include/linux/blkdev.h