blk-mq: cleanup shared tags case in blk_mq_update_nr_requests()

[ Upstream commit 7f2799c546 ]

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>
Stable-dep-of: b86433721f ("blk-mq: fix potential deadlock while nr_requests grown")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Yu Kuai 2025-09-10 16:04:40 +08:00 • committed by Greg Kroah-Hartman
commit 64cb378502
2 changed files with 22 additions and 28 deletions