Commit c9814a3a authored by Ed Tsai's avatar Ed Tsai Committed by Matthias Männich
Browse files

UPSTREAM: blk-mq: check on cpu id when there is only one ctx mapping



commit f168420c ("blk-mq: don't redirect completion for hctx withs
only one ctx mapping") When nvme applies a 1:1 mapping of hctx and ctx,
there will be no remote request.

But for ufs, the submission and completion queues could be asymmetric.
(e.g. Multiple SQs share one CQ) Therefore, 1:1 mapping of hctx and
ctx won't complete request on the submission cpu. In this situation,
this nr_ctx check could violate the QUEUE_FLAG_SAME_FORCE, as a result,
check on cpu id when there is only one ctx mapping.

Bug: 267974767
Signed-off-by: default avatarEd Tsai <ed.tsai@mediatek.com>
Signed-off-by: default avatarPo-Wen Kao <powen.kao@mediatek.com>
Suggested-by: default avatarKeith Busch <kbusch@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230614002529.6636-1-ed.tsai@mediatek.com


[axboe: fixed up indentation]
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
(cherry picked from commit 30654614)
Change-Id: If2b681b1c5163677b40c06735061406da88adc37
parent c413cf73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment