Commit 49c39ec4 authored by Christian König's avatar Christian König

dma-buf: nuke dma_resv_get_excl_unlocked

Heureka, that's finally not used any more.
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/20210917123513.1106-27-christian.koenig@amd.com
parent fa78e367
...@@ -440,32 +440,6 @@ dma_resv_excl_fence(struct dma_resv *obj) ...@@ -440,32 +440,6 @@ dma_resv_excl_fence(struct dma_resv *obj)
return rcu_dereference_check(obj->fence_excl, dma_resv_held(obj)); return rcu_dereference_check(obj->fence_excl, dma_resv_held(obj));
} }
/**
* dma_resv_get_excl_unlocked - get the reservation object's
* exclusive fence, without lock held.
* @obj: the reservation object
*
* If there is an exclusive fence, this atomically increments it's
* reference count and returns it.
*
* RETURNS
* The exclusive fence or NULL if none
*/
static inline struct dma_fence *
dma_resv_get_excl_unlocked(struct dma_resv *obj)
{
struct dma_fence *fence;
if (!rcu_access_pointer(obj->fence_excl))
return NULL;
rcu_read_lock();
fence = dma_fence_get_rcu_safe(&obj->fence_excl);
rcu_read_unlock();
return fence;
}
/** /**
* dma_resv_shared_list - get the reservation object's shared fence list * dma_resv_shared_list - get the reservation object's shared fence list
* @obj: the reservation object * @obj: the reservation object
......
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