dma-buf: fix reservation_object_wait_timeout_rcu to wait correctly v2
authorChristian König <christian.koenig@amd.com>
Thu, 10 Aug 2017 17:01:49 +0000 (13:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Aug 2017 17:01:25 +0000 (13:01 -0400)
commitb88fa004e8a349eba38a3df7a3ace9dd1730b6e0
tree5266f2b1ed288dcf70bf5c51bbce37f1d65dc075
parent7faf952a3030d304334fe527be339b63e9e2745f
dma-buf: fix reservation_object_wait_timeout_rcu to wait correctly v2

With hardware resets in mind it is possible that all shared fences are
signaled, but the exlusive isn't. Fix waiting for everything in this situation.

v2: make sure we always wait for the exclusive fence

Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1502384509-10465-3-git-send-email-alexander.deucher@amd.com
drivers/dma-buf/reservation.c