null_blk: use blk_mq_init_queue_data
authorChristoph Hellwig <hch@lst.de>
Fri, 27 Mar 2020 08:30:09 +0000 (09:30 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Mar 2020 16:23:43 +0000 (10:23 -0600)
commit8d96a1117c21faad4f88d3d2df8c62712b3f495d
treec7acec60971bddff228bc3ba534d76f9111535ad
parent2f227bb99934a4faa6dfe2cda2594bce8897a323
null_blk: use blk_mq_init_queue_data

Use the new blk_mq_init_queue_data instead of open coding the queue
allocation and initialization.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk_main.c