[PATCH 2/3] nvme-pci: unmap MMIO pages with appropriate interface
Christoph Hellwig
hch at lst.de
Thu Oct 16 23:20:08 PDT 2025
On Fri, Oct 17, 2025 at 08:31:59AM +0300, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro at nvidia.com>
>
> Block layer maps MMIO memory through dma_map_phys() interface
> with help of DMA_ATTR_MMIO attribute. There is a need to unmap
> that memory with the appropriate unmap function, something which
> wasn't possible before adding new REQ attribute to block layer in
> previous patch.
DMA_ATTR_MMIO only gets set in the following patch as far as I can
tell.
The more logical way would be to simply convert to dma_unmap_phys
here and then add the flag in one go as suggested last round.
More information about the Linux-nvme
mailing list