]> git.baikalelectronics.ru Git - kernel.git/commit
reservation: revert "wait only with non-zero timeout specified (v3)" v2
authorChristian König <christian.koenig@amd.com>
Mon, 7 Nov 2016 21:16:16 +0000 (16:16 -0500)
committerSumit Semwal <sumit.semwal@linaro.org>
Tue, 8 Nov 2016 19:18:57 +0000 (00:48 +0530)
commit93a8b812b5e2ece7d77d3eed1ecb7d560d5a5747
tree8685a3aa1169f00f2d9015b679e12dcc9b574090
parent76a16ce5b92766832df4789817614368f3fe1dc5
reservation: revert "wait only with non-zero timeout specified (v3)" v2

Reverts commit 75551daf5f97
("reservation: wait only with non-zero timeout specified (v3)")

Otherwise signaling might never be activated on the fences. This can
result in infinite waiting with hardware which has unreliable interrupts.

v2: still return one when the timeout is zero and we don't have any fences.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
  [sumits: fix checkpatch warnings]
Link: http://patchwork.freedesktop.org/patch/msgid/1478553376-18575-4-git-send-email-alexander.deucher@amd.com
drivers/dma-buf/reservation.c