z2ram: use blk_mq_alloc_disk and blk_cleanup_disk
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 06:53:45 +0000 (09:53 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jun 2021 17:54:43 +0000 (11:54 -0600)
commitec06c989bb45acc28c7633703685dd684b1b5d9c
treecb033276aef33656c7602c94fedefc5e017f4be5
parentfd71c8a8ac77242661fff4af39593cd606a90a41
z2ram: use blk_mq_alloc_disk and blk_cleanup_disk

Use blk_mq_alloc_disk and blk_cleanup_disk to simplify the gendisk and
request_queue allocation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Link: https://lore.kernel.org/r/20210602065345.355274-31-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/z2ram.c