Re: [PATCH v9 08/24] dma-mapping: add a dma_need_unmap helper
From: Luis Chamberlain
Date: Sat Apr 26 2025 - 18:49:52 EST
On Wed, Apr 23, 2025 at 11:12:59AM +0300, Leon Romanovsky wrote:
> From: Christoph Hellwig <hch@xxxxxx>
>
> 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@xxxxxx>
> Tested-by: Jens Axboe <axboe@xxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
Reviewed-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
Luis