diff options
author | 2023-01-18 17:37:15 +0800 | |
---|---|---|
committer | 2023-02-06 09:22:28 -0700 | |
commit | 98b99e9412d0cde8c7b442bf5efb09528a2ede8b (patch) | |
tree | 17eb2c6e139b3f1ffa23674e3afeb2c1b66f4ece /scripts/generate_rust_analyzer.py | |
parent | blk-mq: remove stale comment for blk_mq_sched_mark_restart_hctx (diff) | |
download | linux-rng-98b99e9412d0cde8c7b442bf5efb09528a2ede8b.tar.xz linux-rng-98b99e9412d0cde8c7b442bf5efb09528a2ede8b.zip |
blk-mq: wait on correct sbitmap_queue in blk_mq_mark_tag_wait
For shared queues case, we will only wait on bitmap_tags if we fail to get
driver tag. However, rq could be from breserved_tags, then two problems
will occur:
1. io hung if no tag is currently allocated from bitmap_tags.
2. unnecessary wakeup when tag is freed to bitmap_tags while no tag is
freed to breserved_tags.
Wait on the bitmap which rq from to fix this.
Fixes: f906a6a0f426 ("blk-mq: improve tag waiting setup for non-shared tags")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions