Commit 61e55c6f authored by Christian König's avatar Christian König

RDMA: use DMA_RESV_USAGE_KERNEL

We only need to wait for kernel submissions here.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220407085946.744568-9-christian.koenig@amd.com
parent 91f0c245
...@@ -68,7 +68,7 @@ int ib_umem_dmabuf_map_pages(struct ib_umem_dmabuf *umem_dmabuf) ...@@ -68,7 +68,7 @@ int ib_umem_dmabuf_map_pages(struct ib_umem_dmabuf *umem_dmabuf)
* the migration. * the migration.
*/ */
return dma_resv_wait_timeout(umem_dmabuf->attach->dmabuf->resv, return dma_resv_wait_timeout(umem_dmabuf->attach->dmabuf->resv,
DMA_RESV_USAGE_WRITE, DMA_RESV_USAGE_KERNEL,
false, MAX_SCHEDULE_TIMEOUT); false, MAX_SCHEDULE_TIMEOUT);
} }
EXPORT_SYMBOL(ib_umem_dmabuf_map_pages); EXPORT_SYMBOL(ib_umem_dmabuf_map_pages);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment