Skip to content
Snippets Groups Projects
Commit 6ad9aa47 authored by Arvind Yadav's avatar Arvind Yadav Committed by Christian König
Browse files

dma-buf: Remove the signaled bit status check


Remove the signaled bit status check because it is returning
early when the fence is already signaled and
__dma_fence_enable_signaling is checking the status of signaled
bit again.

Signed-off-by: default avatarArvind Yadav <Arvind.Yadav@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220914164321.2156-2-Arvind.Yadav@amd.com


Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent 98a65e6d
No related branches found
No related tags found
No related merge requests found
......@@ -601,9 +601,6 @@ void dma_fence_enable_sw_signaling(struct dma_fence *fence)
{
unsigned long flags;
if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags))
return;
spin_lock_irqsave(fence->lock, flags);
__dma_fence_enable_signaling(fence);
spin_unlock_irqrestore(fence->lock, flags);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment