blk-mq: simplify blk_mq_realloc_tag_set_tags
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Nov 2022 10:08:11 +0000 (11:08 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Nov 2022 18:18:09 +0000 (11:18 -0700)
commitee9d55210c2fe40ab6600b8009de2243b2ad1a4a
tree1a20a62f930711b557ed4da8bd52a46fef02638c
parent5ee20298ff25e883d0668507b3216992a2e9e6cd
blk-mq: simplify blk_mq_realloc_tag_set_tags

Use set->nr_hw_queues for the current number of tags, and remove the
duplicate set->nr_hw_queues update in the caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20221109100811.2413423-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c