[PATCH 10/16] RDMA: use DMA_RESV_USAGE_KERNEL
Daniel Vetter
daniel at ffwll.ch
Wed Apr 6 12:48:35 UTC 2022
On Wed, Apr 06, 2022 at 09:51:26AM +0200, Christian König wrote:
> We only need to wait for kernel submissions here.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
I think we had an implied ack from Jason on this one. Not quite enough cc
to regrab it.
Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
> drivers/infiniband/core/umem_dmabuf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/infiniband/core/umem_dmabuf.c b/drivers/infiniband/core/umem_dmabuf.c
> index f9901d273b8e..fce80a4a5147 100644
> --- a/drivers/infiniband/core/umem_dmabuf.c
> +++ b/drivers/infiniband/core/umem_dmabuf.c
> @@ -68,7 +68,7 @@ int ib_umem_dmabuf_map_pages(struct ib_umem_dmabuf *umem_dmabuf)
> * the migration.
> */
> return dma_resv_wait_timeout(umem_dmabuf->attach->dmabuf->resv,
> - DMA_RESV_USAGE_WRITE,
> + DMA_RESV_USAGE_KERNEL,
> false, MAX_SCHEDULE_TIMEOUT);
> }
> EXPORT_SYMBOL(ib_umem_dmabuf_map_pages);
> --
> 2.25.1
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
More information about the dri-devel
mailing list