diff options
author | faux123 <reioux@gmail.com> | 2012-02-06 23:54:21 -0800 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-01-08 10:36:50 +0100 |
commit | 8fc7be6133010a1caead2165e08724f5e108d969 (patch) | |
tree | c3d311dba329cff7d819b7a8ab3ec9e65fda3359 /block/blk-sysfs.c | |
parent | fa515fd57674cb6501ac4e1ee34d63e2ce239209 (diff) | |
download | kernel_samsung_tuna-8fc7be6133010a1caead2165e08724f5e108d969.zip kernel_samsung_tuna-8fc7be6133010a1caead2165e08724f5e108d969.tar.gz kernel_samsung_tuna-8fc7be6133010a1caead2165e08724f5e108d969.tar.bz2 |
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>
modified by faux123
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 1789e7a..d238192 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -496,6 +496,8 @@ static void blk_release_queue(struct kobject *kobj) blk_trace_shutdown(q); bdi_destroy(&q->backing_dev_info); + + ida_simple_remove(&blk_queue_ida, q->id); kmem_cache_free(blk_requestq_cachep, q); } |