]> git.baikalelectronics.ru Git - kernel.git/commit
swim: use blk_mq_alloc_disk
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 06:53:27 +0000 (09:53 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jun 2021 17:53:03 +0000 (11:53 -0600)
commit90fe4779a9534f91163836737f75585cdc23df78
treeab617ac54bf426ca7c51f73b9388244abc767ba8
parentf62fb6aa6933c5d3d2bca1f7c54ecab6ab3458cf
swim: use blk_mq_alloc_disk

Use the blk_mq_alloc_disk API 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-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/swim.c