]> www.infradead.org Git - users/hch/block.git/commit
blk-mq: add the blk_mq_alloc_disk APIs
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Apr 2021 16:01:02 +0000 (18:01 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 27 May 2021 07:43:27 +0000 (09:43 +0200)
commit52869def83221f63d59a87000bcfd6d88b98d7d9
treee24fd4704498791d8e0feae07a1847776e85f1ac
parent91bbf9af23509b1cad1d14a9127e2d7ffd8a75ca
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>
block/blk-mq.c
include/linux/blk-mq.h