Re: [PATCH 2/3] dma-buf/sw_sync: clean up list before signaling the fence

2017-07-31 Thread Gustavo Padovan
2017-07-30 Chris Wilson : > Quoting Gustavo Padovan (2017-07-29 16:22:16) > > From: Gustavo Padovan > > > > If userspace already dropped its own reference by closing the sw_sync > > fence fd we might end up in a deadlock where > > dma_fence_is_signaled_locked() will trigger the release of the fe

Re: [PATCH 2/3] dma-buf/sw_sync: clean up list before signaling the fence

2017-07-30 Thread Chris Wilson
Quoting Gustavo Padovan (2017-07-29 16:22:16) > From: Gustavo Padovan > > If userspace already dropped its own reference by closing the sw_sync > fence fd we might end up in a deadlock where > dma_fence_is_signaled_locked() will trigger the release of the fence and > thus try to hold the lock to

[PATCH 2/3] dma-buf/sw_sync: clean up list before signaling the fence

2017-07-29 Thread Gustavo Padovan
From: Gustavo Padovan If userspace already dropped its own reference by closing the sw_sync fence fd we might end up in a deadlock where dma_fence_is_signaled_locked() will trigger the release of the fence and thus try to hold the lock to remove the fence from the list. dma_fence_is_signaled_loc