blk-mq: cleanup shared tags case in blk_mq_update_nr_requests()
authorYu Kuai <yukuai3@huawei.com>
Wed, 10 Sep 2025 08:04:40 +0000 (16:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Sep 2025 11:25:56 +0000 (05:25 -0600)
commit7f2799c546dba9e12f9ff4d07936601e416c640d
tree920de4a7b0afb8e2e25e5eb51d835f77138c30b7
parent626ff4f8ebcb7207f01e7810acb85812ccf06bd8
blk-mq: cleanup shared tags case in blk_mq_update_nr_requests()

For shared tags case, all hctx->sched_tags/tags are the same, it doesn't
make sense to call into blk_mq_tag_update_depth() multiple times for the
same tags.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c
block/blk-mq.c