[PATCH 1/3] dma-buf/sync_file: only enable fence signalling during wait

2016-06-10 Thread Daniel Vetter
On Thu, Jun 09, 2016 at 12:05:28PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Signalling doesn't need to be enabled at sync_file creation, it is only > required if userspace waiting the fence to signal through poll(). > > Thus we delay fence_add_callback() until poll is called. It

[PATCH 1/3] dma-buf/sync_file: only enable fence signalling during wait

2016-06-09 Thread Gustavo Padovan
From: Gustavo Padovan Signalling doesn't need to be enabled at sync_file creation, it is only required if userspace waiting the fence to signal through poll(). Thus we delay fence_add_callback() until poll is called. It only adds the callback the first time poll() is called. This avoid re-adding