Skip to content

Commit 820efc6

Browse files
committed
block: kill request slab cache
Reviewed-by: Hannes Reinecke <hare@suse.com> Tested-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent db6d995 commit 820efc6

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

block/blk-core.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(block_unplug);
5757

5858
DEFINE_IDA(blk_queue_ida);
5959

60-
/*
61-
* For the allocated request tables
62-
*/
63-
struct kmem_cache *request_cachep;
64-
6560
/*
6661
* For queue allocation
6762
*/
@@ -1971,9 +1966,6 @@ int __init blk_dev_init(void)
19711966
if (!kblockd_workqueue)
19721967
panic("Failed to create kblockd\n");
19731968

1974-
request_cachep = kmem_cache_create("blkdev_requests",
1975-
sizeof(struct request), 0, SLAB_PANIC, NULL);
1976-
19771969
blk_requestq_cachep = kmem_cache_create("request_queue",
19781970
sizeof(struct request_queue), 0, SLAB_PANIC, NULL);
19791971

block/blk.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ struct blk_flush_queue {
3232
};
3333

3434
extern struct kmem_cache *blk_requestq_cachep;
35-
extern struct kmem_cache *request_cachep;
3635
extern struct kobj_type blk_queue_ktype;
3736
extern struct ida blk_queue_ida;
3837

0 commit comments

Comments
 (0)