]> git.baikalelectronics.ru Git - kernel.git/commit
reservation: wait only with non-zero timeout specified (v3)
authorJammy Zhou <Jammy.Zhou@amd.com>
Wed, 21 Jan 2015 10:35:47 +0000 (18:35 +0800)
committerSumit Semwal <sumit.semwal@linaro.org>
Thu, 22 Jan 2015 05:57:57 +0000 (11:27 +0530)
commit75551daf5f97198538e5fd77ab41a4e9aa83e136
tree8aa091a8b4cd62f330f9397ee43c99c6df8aa13f
parent267f5c92e75563589773d77204e1e7d1c866ddcc
reservation: wait only with non-zero timeout specified (v3)

When the timeout value passed to reservation_object_wait_timeout_rcu
is zero, no wait should be done if the fences are not signaled.

Return '1' for idle and '0' for busy if the specified timeout is '0'
to keep consistent with the case of non-zero timeout.

v2: call fence_put if not signaled in the case of timeout==0

v3: switch to reservation_object_test_signaled_rcu

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-By: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/dma-buf/reservation.c