Re: [PATCH] blk-mq: fix stale tag depth for shared sched tags in blk_mq_update_nr_requests()

From: Jens Axboe

Date: Wed Oct 15 2025 - 09:49:02 EST


On 10/14/25 7:48 PM, Yu Kuai wrote:
> Commit 7f2799c546db ("blk-mq: cleanup shared tags case in
> blk_mq_update_nr_requests()") moves blk_mq_tag_update_sched_shared_tags()
> before q->nr_requests is updated, however, it's still using the old
> q->nr_requests to resize tag depth.
>
> Fix this problem by passing in expected new tag depth.

Fix looks fine, but you really should add a Link to the bug report, and
also a Reported-by tag. I'll add those.

--
Jens Axboe