]> www.infradead.org Git - users/hch/block.git/commit
nbd: use blk_mq_alloc_disk and blk_cleanup_disk
authorChristoph Hellwig <hch@lst.de>
Tue, 4 May 2021 15:52:31 +0000 (17:52 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 05:49:25 +0000 (08:49 +0300)
commitaa83e319d1bd9ff7b54e9ba636a3e41cd3774e12
treedeea5edcd16e6514f6786f8d5e0eb5c3ae3749a5
parent7fd875b07dd0cd162f08cbf74fe6bad1d91392cf
nbd: 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>
drivers/block/nbd.c