blk-mq-dma: bring back p2p request flags
authorKeith Busch <kbusch@kernel.org>
Wed, 3 Sep 2025 19:33:17 +0000 (12:33 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Sep 2025 16:33:35 +0000 (10:33 -0600)
commitd57447ffb5fadffdba920f2fb933296fb6c5ff57
treedbd4a5c9aab4476d8e7420cae87090c767354775
parent05ceea5d3ec9a1b1d6858ffd4739fdb0ed1b8eaf
blk-mq-dma: bring back p2p request flags

We only need to consider data and metadata dma mapping types separately.
The request and bio integrity payload have enough flag bits to
internally track the mapping type for each. Use these so the caller
doesn't need to track them, and provide separete request and integrity
helpers to the common code. This will make it easier to scale new
mappings, like the proposed MMIO attribute, without burdening the caller
to track such things.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-dma.c
drivers/nvme/host/pci.c
include/linux/bio-integrity.h
include/linux/blk-integrity.h
include/linux/blk-mq-dma.h
include/linux/blk_types.h