]> asedeno.scripts.mit.edu Git - linux.git/commit
dma-buf: keep only not signaled fence in reservation_object_add_shared_replace v3
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Tue, 14 Nov 2017 14:24:35 +0000 (15:24 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Nov 2017 17:00:46 +0000 (12:00 -0500)
commit4d9c62e8ce69d0b0a834282a34bff5ce8eeacb1d
tree76cb9511b921b7e1380118c6718c9f613c807d23
parent0c51ef8684e30333ee2a7cef359258d91727166b
dma-buf: keep only not signaled fence in reservation_object_add_shared_replace v3

The amdgpu issue to also need signaled fences in the reservation objects
should be fixed by now.

Optimize the list by keeping only the not signaled yet fences around.

v2: temporary put the signaled fences at the end of the new container
v3: put the old fence at the end of the new container as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171114142436.1360-1-christian.koenig@amd.com
drivers/dma-buf/reservation.c