[Intel-gfx] [PATCH 1/3] drm/i915: Use EAGAIN for trylock failures

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Fri Dec 13 13:24:38 UTC 2019


Quoting Chris Wilson (2019-12-12 03:46:27)
> While not good behaviour, it is, however, established behaviour that we
> can punt EAGAIN to userspace if we need to retry the ioctl. When trying
> to acquire a mutex, prefer to use EAGAIN to propagate losing the race
> so that if it does end up back in userspace, we try again.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas


More information about the Intel-gfx mailing list