[PATCH v2] drm/amdgpu: fix double reference dropping

2019-11-06 Thread Pan Bian
The reference to object fence is dropped at the end of the loop. However, it is dropped again outside the loop. The reference can be dropped immediately after calling dma_fence_wait() in the loop and thus the dropping operation outside the loop can be removed. Signed-off-by: Pan Bian --- v2: fix

Re: [PATCH v2] drm/amdgpu: fix double reference dropping

2019-11-06 Thread Alex Deucher
On Wed, Nov 6, 2019 at 7:48 AM Koenig, Christian wrote: > > Am 06.11.19 um 12:35 schrieb Pan Bian: > > The reference to object fence is dropped at the end of the loop. > > However, it is dropped again outside the loop. The reference can be > > dropped immediately after calling dma_fence_wait() in

Re: [PATCH v2] drm/amdgpu: fix double reference dropping

2019-11-06 Thread Koenig, Christian
Am 06.11.19 um 12:35 schrieb Pan Bian: > The reference to object fence is dropped at the end of the loop. > However, it is dropped again outside the loop. The reference can be > dropped immediately after calling dma_fence_wait() in the loop and > thus the dropping operation outside the loop can be