]> git.baikalelectronics.ru Git - kernel.git/commit
nullb: use blk_mq_alloc_disk
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 06:53:35 +0000 (09:53 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jun 2021 17:54:39 +0000 (11:54 -0600)
commit9a83c887612524a6e52503b6378c4743d2ed097b
treeeaf77dc085ac78f96d7ae49c442df35539cd7f28
parent7591baeea6c62a7916ef65d2bd78a7f9e4d45e07
nullb: use blk_mq_alloc_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-21-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c