Re: [PATCH 03/30] blk-mq: add the blk_mq_alloc_disk APIs

2021-06-02 Thread Chaitanya Kulkarni
On 6/1/21 23:54, Christoph Hellwig wrote: > 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 This would be a nice API to get rid of the couple initialization

[PATCH 03/30] blk-mq: add the blk_mq_alloc_disk APIs

2021-06-02 Thread Christoph Hellwig
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 --- block/blk-mq.c | 19 +++ include/linux/blk-mq.h | 12 2 files changed, 31