[PATCH v3] dma-buf/sync_file: Increment refcount of fence when all are signaled.

2016-09-20 Thread Sumit Semwal
Hi Rafael, On 16 September 2016 at 00:44, Rafael Antognolli wrote: > When we merge several fences, if all of them are signaled already, we > still keep one of them. So instead of using add_fence(), which will not > increase the refcount of signaled fences, we should explicitly call > fence_get()

[PATCH v3] dma-buf/sync_file: Increment refcount of fence when all are signaled.

2016-09-15 Thread Rafael Antognolli
When we merge several fences, if all of them are signaled already, we still keep one of them. So instead of using add_fence(), which will not increase the refcount of signaled fences, we should explicitly call fence_get() for the fence we are keeping. This patch fixes a kernel panic that can be