]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
blk-mq-dma: always initialize dma state
authorKeith Busch <kbusch@kernel.org>
Wed, 10 Dec 2025 10:43:46 +0000 (02:43 -0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Dec 2025 20:41:11 +0000 (13:41 -0700)
commita0750fae73c55112ea11a4867bee40f11e679405
tree0e6fba88856f8dd7072578eee4c1cec664f903ad
parentf22ecf9c14c12918e30f2179ef516e99eb8b2e49
blk-mq-dma: always initialize dma state

Ensure the dma state is initialized when we're not using the contiguous
iova, otherwise the caller may be using a stale state from a previous
request that could use the coalesed iova allocation.

Fixes: 2f6b2565d43cdb5 ("block: accumulate memory segment gaps per bio")
Reported-by: Sebastian Ott <sebott@redhat.com>
Tested-by: Sebastian Ott <sebott@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-dma.c