linux/block
Tejun Heo 7e5a879449 block, cfq: move io_cq exit/release to blk-ioc.c
With kmem_cache managed by blk-ioc, io_cq exit/release can be moved to
blk-ioc too.  The odd ->io_cq->exit/release() callbacks are replaced
with elevator_ops->elevator_exit_icq_fn() with unlinking from both ioc
and q, and freeing automatically handled by blk-ioc.  The elevator
operation only need to perform exit operation specific to the elevator
- in cfq's case, exiting the cfqq's.

Also, clearing of io_cq's on q detach is moved to block core and
automatically performed on elevator switch and q release.

Because the q io_cq points to might be freed before RCU callback for
the io_cq runs, blk-ioc code should remember to which cache the io_cq
needs to be freed when the io_cq is released.  New field
io_cq->__rcu_icq_cache is added for this purpose.  As both the new
field and rcu_head are used only after io_cq is released and the
q/ioc_node fields aren't, they are put into unions.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2011-12-14 00:33:42 +01:00
..
blk-cgroup.c block, cfq: unlink cfq_io_context's immediately 2011-12-14 00:33:39 +01:00
blk-cgroup.h
blk-core.c block, cfq: move cfqd->icq_list to request_queue and add request->elv.icq 2011-12-14 00:33:41 +01:00
blk-exec.c block: add missing blk_queue_dead() checks 2011-12-14 00:33:37 +01:00
blk-flush.c
blk-integrity.c
blk-ioc.c block, cfq: move io_cq exit/release to blk-ioc.c 2011-12-14 00:33:42 +01:00
blk-iopoll.c
blk-lib.c
blk-map.c block: Always check length of all iov entries in blk_rq_map_user_iov() 2011-11-13 19:58:09 +01:00
blk-merge.c
blk-settings.c
blk-softirq.c
blk-sysfs.c block, cfq: move io_cq exit/release to blk-ioc.c 2011-12-14 00:33:42 +01:00
blk-tag.c
blk-throttle.c block: add blk_queue_dead() 2011-12-14 00:33:37 +01:00
blk-timeout.c
blk.h block, cfq: move io_cq exit/release to blk-ioc.c 2011-12-14 00:33:42 +01:00
bsg-lib.c
bsg.c block: misc updates to blk_get_queue() 2011-12-14 00:33:38 +01:00
cfq-iosched.c block, cfq: move io_cq exit/release to blk-ioc.c 2011-12-14 00:33:42 +01:00
cfq.h
compat_ioctl.c
deadline-iosched.c block, cfq: move icq cache management to block core 2011-12-14 00:33:42 +01:00
elevator.c block, cfq: move io_cq exit/release to blk-ioc.c 2011-12-14 00:33:42 +01:00
genhd.c block: misc updates to blk_get_queue() 2011-12-14 00:33:38 +01:00
ioctl.c
Kconfig
Kconfig.iosched
Makefile
noop-iosched.c block, cfq: move icq cache management to block core 2011-12-14 00:33:42 +01:00
scsi_ioctl.c