Skip to content

Commit

Permalink
dma-buf: Remove the signaled bit status check
Browse files Browse the repository at this point in the history
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: Arvind Yadav <Arvind.Yadav@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220914164321.2156-2-Arvind.Yadav@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
  • Loading branch information
Arvind Yadav authored and Christian König committed Sep 16, 2022
1 parent 98a65e6 commit 6ad9aa4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/dma-buf/dma-fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6ad9aa4

Please sign in to comment.