OSDN Git Service

dma-buf: make returning the exclusive fence optional
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Wed, 10 Jan 2018 12:53:41 +0000 (13:53 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jan 2018 17:14:26 +0000 (12:14 -0500)
commita35f2f34b5b4ea079abefb644ac4f828c30e9a5d
tree36123f3e577fac7304f8bb09c0fa12eac04f7a5b
parentc60c4af36d56ce3ae4f3c3fa5250a41caa991506
dma-buf: make returning the exclusive fence optional

Change reservation_object_get_fences_rcu to make the exclusive fence
pointer optional.

If not specified the exclusive fence is put into the fence array as
well.

This is helpful for a couple of cases where we need all fences in a
single array.

Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180110125341.3618-1-christian.koenig@amd.com
drivers/dma-buf/reservation.c