Re: [PATCH] drm: simplify the locking in the GETCRTC ioctl

2017-03-28 Thread Harry Wentland
Reviewed-by: Harry Wentland Harry On 2017-03-28 03:01 AM, Daniel Vetter wrote: No need to grab both plane and crtc locks at the same time, we can do them one after the other. If userspace races it'll get what it deserves either way. This removes another user of

[PATCH] drm: simplify the locking in the GETCRTC ioctl

2017-03-28 Thread Daniel Vetter
No need to grab both plane and crtc locks at the same time, we can do them one after the other. If userspace races it'll get what it deserves either way. This removes another user of drm_modeset_lock_crtc. There's only one left. v2: Make sure all access to primary->state is properly protected