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

2019-12-13 Thread Joonas Lahtinen
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

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

2019-12-11 Thread Chris Wilson
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 Wils