File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ int ib_umem_dmabuf_map_pages(struct ib_umem_dmabuf *umem_dmabuf)
26
26
if (umem_dmabuf -> sgt )
27
27
goto wait_fence ;
28
28
29
- sgt = dma_buf_map_attachment (umem_dmabuf -> attach , DMA_BIDIRECTIONAL );
29
+ sgt = dma_buf_map_attachment_unlocked (umem_dmabuf -> attach ,
30
+ DMA_BIDIRECTIONAL );
30
31
if (IS_ERR (sgt ))
31
32
return PTR_ERR (sgt );
32
33
@@ -102,8 +103,8 @@ void ib_umem_dmabuf_unmap_pages(struct ib_umem_dmabuf *umem_dmabuf)
102
103
umem_dmabuf -> last_sg_trim = 0 ;
103
104
}
104
105
105
- dma_buf_unmap_attachment (umem_dmabuf -> attach , umem_dmabuf -> sgt ,
106
- DMA_BIDIRECTIONAL );
106
+ dma_buf_unmap_attachment_unlocked (umem_dmabuf -> attach , umem_dmabuf -> sgt ,
107
+ DMA_BIDIRECTIONAL );
107
108
108
109
umem_dmabuf -> sgt = NULL ;
109
110
}
You can’t perform that action at this time.
0 commit comments