projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
949f088
)
drm/vgem: Use ww_mutex_(un)lock even with a NULL context
author
Nicolai Hähnle
<
[email protected]
>
Thu, 1 Dec 2016 14:06:44 +0000
(15:06 +0100)
committer
Daniel Vetter
<
[email protected]
>
Fri, 2 Dec 2016 16:15:20 +0000
(17:15 +0100)
v2: use resv->lock instead of resv->lock.base (Christian König)
Cc: Peter Zijlstra <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Maarten Lankhorst <
[email protected]
>
Cc: Daniel Vetter <
[email protected]
>
Cc: Chris Wilson <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Nicolai Hähnle <
[email protected]
>
Reviewed-by: Chris Wilson <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/vgem/vgem_fence.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vgem/vgem_fence.c
b/drivers/gpu/drm/vgem/vgem_fence.c
index 488909a21ed89d49c9ee1dade3cdffd6ac60f53b..9cb00a5d5d08ca0fab86be865f321a223c01d1cc 100644
(file)
--- a/
drivers/gpu/drm/vgem/vgem_fence.c
+++ b/
drivers/gpu/drm/vgem/vgem_fence.c
@@
-191,12
+191,12
@@
int vgem_fence_attach_ioctl(struct drm_device *dev,
/* Expose the fence via the dma-buf */
ret = 0;
-
mutex_lock(&resv->lock.base
);
+
ww_mutex_lock(&resv->lock, NULL
);
if (arg->flags & VGEM_FENCE_WRITE)
reservation_object_add_excl_fence(resv, fence);
else if ((ret = reservation_object_reserve_shared(resv)) == 0)
reservation_object_add_shared_fence(resv, fence);
-
mutex_unlock(&resv->lock.base
);
+
ww_mutex_unlock(&resv->lock
);
/* Record the fence in our idr for later signaling */
if (ret == 0) {