[PATCH 3/4] block-dma: properly take MMIO path
Keith Busch
kbusch at kernel.org
Mon Oct 13 12:01:18 PDT 2025
On Mon, Oct 13, 2025 at 06:34:11PM +0300, Leon Romanovsky wrote:
> static bool blk_dma_map_direct(struct request *req, struct device *dma_dev,
> struct blk_dma_iter *iter, struct phys_vec *vec)
> {
> + unsigned int attrs = 0;
> +
> + if (req->cmd_flags & REQ_MMIO)
> + attrs |= DMA_ATTR_MMIO;
Since data and integrity paylods use these same functions and may point
to different kinds of memory, I think you'd have to pass the 'attrs'
from the caller since it knows which flags to check for MMIO dma.
More information about the Linux-nvme
mailing list