[PATCH v9 08/24] dma-mapping: add a dma_need_unmap helper

Luis Chamberlain mcgrof at kernel.org
Sat Apr 26 15:49:32 PDT 2025


On Wed, Apr 23, 2025 at 11:12:59AM +0300, Leon Romanovsky wrote:
> From: Christoph Hellwig <hch at lst.de>
> 
> Add helper that allows a driver to skip calling dma_unmap_*
> if the DMA layer can guarantee that they are no-nops.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> Tested-by: Jens Axboe <axboe at kernel.dk>
> Signed-off-by: Leon Romanovsky <leonro at nvidia.com>

Reviewed-by: Luis Chamberlain <mcgrof at kernel.org>

  Luis



More information about the Linux-nvme mailing list