[PATCHv2 2/2] blk-mq-dma: bring back p2p request flags
Leon Romanovsky
leon at kernel.org
Wed Sep 3 01:20:30 PDT 2025
On Tue, Sep 02, 2025 at 01:01:21PM -0700, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
>
> We 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.
>
> Signed-off-by: Keith Busch <kbusch at kernel.org>
> ---
> block/blk-mq-dma.c | 4 ++++
> drivers/nvme/host/pci.c | 21 ++++-----------------
> include/linux/bio-integrity.h | 1 +
> include/linux/blk-integrity.h | 14 ++++++++++++++
> include/linux/blk-mq-dma.h | 11 +++++++++--
> include/linux/blk_types.h | 2 ++
> 6 files changed, 34 insertions(+), 19 deletions(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro at nvidia.com>
More information about the Linux-nvme
mailing list