]> Gentwo Git Trees - linux/.git/commit
blk-mq-dma: add scatter-less integrity data DMA mapping
authorKeith Busch <kbusch@kernel.org>
Wed, 13 Aug 2025 15:31:50 +0000 (08:31 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Aug 2025 13:44:39 +0000 (07:44 -0600)
commitfec9b16dc5550191fd85af118271ea00e8dcc5f8
treec4ecee09d05f3502a7b4c2c01c1aaf6321b049b4
parente2be2ba6d27d5c74f3bd458b64d1ad34a8a75bd8
blk-mq-dma: add scatter-less integrity data DMA mapping

Similar to regular data, introduce more efficient integrity mapping
helpers that does away with the scatterlist structure. This uses the
block mapping iterator to add IOVA segments if IOMMU is enabled, or maps
directly if not. This also supports P2P segements if integrity data ever
wants to allocate that type of memory.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20250813153153.3260897-7-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-dma.c
include/linux/blk-integrity.h
include/linux/blk-mq-dma.h