File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ int ib_umem_dmabuf_map_pages(struct ib_umem_dmabuf *umem_dmabuf)
16
16
{
17
17
struct sg_table * sgt ;
18
18
struct scatterlist * sg ;
19
- struct dma_fence * fence ;
20
19
unsigned long start , end , cur = 0 ;
21
20
unsigned int nmap = 0 ;
22
21
int i ;
@@ -68,11 +67,8 @@ int ib_umem_dmabuf_map_pages(struct ib_umem_dmabuf *umem_dmabuf)
68
67
* may be not up-to-date. Wait for the exporter to finish
69
68
* the migration.
70
69
*/
71
- fence = dma_resv_excl_fence (umem_dmabuf -> attach -> dmabuf -> resv );
72
- if (fence )
73
- return dma_fence_wait (fence , false);
74
-
75
- return 0 ;
70
+ return dma_resv_wait_timeout (umem_dmabuf -> attach -> dmabuf -> resv , false,
71
+ false, MAX_SCHEDULE_TIMEOUT );
76
72
}
77
73
EXPORT_SYMBOL (ib_umem_dmabuf_map_pages );
78
74
You can’t perform that action at this time.
0 commit comments