[PATCH 1/2] reservation: wait only with non-zero timeout specified (v3)

Maarten Lankhorst maarten.lankhorst at canonical.com
Wed Jan 21 02:31:11 PST 2015


Op 21-01-15 om 11:35 schreef Jammy Zhou:
> 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 at amd.com>
> Reviewed-by: Christian König <christian.koenig at amd.com>
> Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
>
Reviewed-By: Maarten Lankhorst <maarten.lankhorst at canonical.com>


More information about the dri-devel mailing list