]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: add the blk_mq_alloc_disk APIs
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 06:53:18 +0000 (09:53 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jun 2021 17:53:02 +0000 (11:53 -0600)
commitd0e8febb10cbf1b1aa648ca15539fda1656a4257
tree8858c13ab206fcfaa8bb8828b1e40d84341f788c
parent76b05e053dcdde9f284d0d31d123806f470aa33b
blk-mq: add the blk_mq_alloc_disk APIs

Add a new API to allocate a gendisk including the request_queue for use
with blk-mq based drivers.  This is to avoid boilerplate code in drivers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Link: https://lore.kernel.org/r/20210602065345.355274-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blk-mq.h