dma-buf: simplify reservation_object_get_fences_rcu a bit
authorChristian König <christian.koenig@amd.com>
Mon, 5 Aug 2019 09:49:20 +0000 (11:49 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 7 Aug 2019 11:13:11 +0000 (13:13 +0200)
commitb8c036dfc66f774624ba7b9e7414fd90a61e0527
tree569c5732093526b63385d8530fa0456345f9eaf4
parent4c2488cfaa997e396aeb9d6496db94c25b97c671
dma-buf: simplify reservation_object_get_fences_rcu a bit

We can add the exclusive fence to the list after making sure we got
a consistent state.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/322034/?series=64786&rev=1
drivers/dma-buf/reservation.c