Skip to content

Commit 6ad9aa4

Browse files
ArvindYadavAMDChristianKoenigAMD
authored andcommitted
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: 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>
1 parent 98a65e6 commit 6ad9aa4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/dma-buf/dma-fence.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,6 @@ void dma_fence_enable_sw_signaling(struct dma_fence *fence)
601601
{
602602
unsigned long flags;
603603

604-
if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags))
605-
return;
606-
607604
spin_lock_irqsave(fence->lock, flags);
608605
__dma_fence_enable_signaling(fence);
609606
spin_unlock_irqrestore(fence->lock, flags);

0 commit comments

Comments
 (0)