diff options
author | Tejun Heo <tj@kernel.org> | 2011-12-14 00:33:42 +0100 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-01-08 10:37:01 +0100 |
commit | 87bc1a8ceb329a3b6a8dd101378e61c7302d2f84 (patch) | |
tree | 68e281f4e3eeab8a93d69b0d498dfdca19a1bda4 /block/noop-iosched.c | |
parent | 5fdfa8335c530e8a903edfb90aafcd9219d5cd91 (diff) | |
download | kernel_samsung_tuna-87bc1a8ceb329a3b6a8dd101378e61c7302d2f84.zip kernel_samsung_tuna-87bc1a8ceb329a3b6a8dd101378e61c7302d2f84.tar.gz kernel_samsung_tuna-87bc1a8ceb329a3b6a8dd101378e61c7302d2f84.tar.bz2 |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/block/noop-iosched.c b/block/noop-iosched.c index 06389e9..413a0b1 100644 --- a/block/noop-iosched.c +++ b/block/noop-iosched.c @@ -94,9 +94,7 @@ static struct elevator_type elevator_noop = { static int __init noop_init(void) { - elv_register(&elevator_noop); - - return 0; + return elv_register(&elevator_noop); } static void __exit noop_exit(void) |