]> git.baikalelectronics.ru Git - kernel.git/commit
block: add a blk_mq_init_queue_data helper
authorChristoph Hellwig <hch@lst.de>
Fri, 27 Mar 2020 08:30:08 +0000 (09:30 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Mar 2020 16:23:43 +0000 (10:23 -0600)
commit73ca7b5928ed796137d44155585b0f3726f8be6f
treececb9d1c85abf4a3f4f4f93610e04432202052bc
parentf2e95717b1d02a10841c9823514ab2c1d28e3e4c
block: add a blk_mq_init_queue_data helper

This allows a driver to pass a queuedata member before ->init_hctx is
called.  null_blk currently open codes this logic, but I'd rather have
it in the core to ease future maintainance.

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