blk-mq: factor out a blk_mq_alloc_sq_tag_set helper
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Jun 2021 06:53:16 +0000 (09:53 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jun 2021 17:53:02 +0000 (11:53 -0600)
commitcdb14e0f7775e767484843e8ecd736bb21754c58
tree1656af72f79a9b9532fbed8fe3cf9af3f4648b5a
parenta624eb520390cecf644a8906c982fd53b2afcc49
blk-mq: factor out a blk_mq_alloc_sq_tag_set helper

Factour out a helper to initialize a simple single hw queue tag_set from
blk_mq_init_sq_queue.  This will allow to phase out blk_mq_init_sq_queue
in favor of a more symmetric and general API.

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