aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTejun Heo2011-12-13 17:33:42 -0600
committerJens Axboe2011-12-13 17:33:42 -0600
commit3d3c2379feb177a5fd55bb0ed76776dc9d4f3243 (patch)
treefafebbef8f0fb5b73ac4db24bff20dcd40b8bf12 /block/noop-iosched.c
parent47fdd4ca96bf4b28ac4d05d7a6e382df31d3d758 (diff)
downloadkernel-common-3d3c2379feb177a5fd55bb0ed76776dc9d4f3243.tar.gz
kernel-common-3d3c2379feb177a5fd55bb0ed76776dc9d4f3243.tar.xz
kernel-common-3d3c2379feb177a5fd55bb0ed76776dc9d4f3243.zip
block, cfq: move icq cache management to block core
Let elevators set ->icq_size and ->icq_align in elevator_type and elv_register() and elv_unregister() respectively create and destroy kmem_cache for icq. * elv_register() now can return failure. All callers updated. * icq caches are automatically named "ELVNAME_io_cq". * cfq_slab_setup/kill() are collapsed into cfq_init/exit(). * While at it, minor indentation change for iosched_cfq.elevator_name for consistency. This will help moving icq management to block core. This doesn't introduce any functional change. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/noop-iosched.c')
-rw-r--r--block/noop-iosched.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/block/noop-iosched.c b/block/noop-iosched.c
index 06389e9ef96..413a0b1d788 100644
--- a/block/noop-iosched.c
+++ b/block/noop-iosched.c
@@ -94,9 +94,7 @@ static struct elevator_type elevator_noop = {
94 94
95static int __init noop_init(void) 95static int __init noop_init(void)
96{ 96{
97 elv_register(&elevator_noop); 97 return elv_register(&elevator_noop);
98
99 return 0;
100} 98}
101 99
102static void __exit noop_exit(void) 100static void __exit noop_exit(void)