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

2016-09-15 Thread Chris Wilson
On Wed, Sep 14, 2016 at 04:46:18PM -0700, 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() fo

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

2016-09-15 Thread Gustavo Padovan
Hi Rafael, 2016-09-14 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 keep

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

2016-09-14 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 tr