block: kill request slab cache
authorJens Axboe <axboe@kernel.dk>
Thu, 11 Oct 2018 22:00:52 +0000 (16:00 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:42:33 +0000 (13:42 -0700)
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>
block/blk-core.c
block/blk.h

index 45f5c5898fd72f271cdd2b4c0bc3acb349948db1..a14dab57ff8b2f8ca654fb045f8d1b0abede130d 100644 (file)
@@ -57,11 +57,6 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(block_unplug);
 
 DEFINE_IDA(blk_queue_ida);
 
-/*
- * For the allocated request tables
- */
-struct kmem_cache *request_cachep;
-
 /*
  * For queue allocation
  */
@@ -1971,9 +1966,6 @@ int __init blk_dev_init(void)
        if (!kblockd_workqueue)
                panic("Failed to create kblockd\n");
 
-       request_cachep = kmem_cache_create("blkdev_requests",
-                       sizeof(struct request), 0, SLAB_PANIC, NULL);
-
        blk_requestq_cachep = kmem_cache_create("request_queue",
                        sizeof(struct request_queue), 0, SLAB_PANIC, NULL);
 
index e925cf4fe4de872426a0ea8a2f5278f85fe30b2d..2bf1cfeeb9c061698c7745a5bc629846abcc5ffc 100644 (file)
@@ -32,7 +32,6 @@ struct blk_flush_queue {
 };
 
 extern struct kmem_cache *blk_requestq_cachep;
-extern struct kmem_cache *request_cachep;
 extern struct kobj_type blk_queue_ktype;
 extern struct ida blk_queue_ida;