]> git.hungrycats.org Git - linux/commit
blk-mq-dma: initialize the dma state for P2P, too
authorJosef Bacik <josef@toxicpanda.com>
Wed, 28 Oct 2026 16:41:35 +0000 (10:41 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Oct 2026 13:15:47 +0000 (07:15 -0600)
commit035236c9e135a2ce7d0f68cb56e63d4a3da2abe1
tree3341acc00524abbccfb4f6fe1b7b33dc35200412
parent0db9f8968a8941d4fc9fddf220d4983d9b68deaf
blk-mq-dma: initialize the dma state for P2P, too

blk_rq_dma_map_iter_start() promises that the caller need not initialize
the dma_iova_state, but the P2P bus address path returns before it does
so. The state then holds what the last request with that tag left, and
blk_rq_dma_map_coalesce() describes a transfer as one IOVA range that it
isn't. Clear it on that path too.

Fixes: 858299dc6160 ("block: add scatterlist-less DMA mapping helpers")
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20261028164415.1262013-33-axboe@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-dma.c