[PATCH 2/7] drm: Protect master->unique with dev->master_mutex

2016-12-09 Thread Daniel Vetter
On Fri, Dec 09, 2016 at 02:54:34PM +, Emil Velikov wrote: > On 9 December 2016 at 14:19, Daniel Vetter wrote: > > No one looks at the major/minor versions except the unique/busid > > stuff. If we protect that with the master_mutex (since it also affects > > the unique of each master, oh well)

[PATCH 2/7] drm: Protect master->unique with dev->master_mutex

2016-12-09 Thread Daniel Vetter
No one looks at the major/minor versions except the unique/busid stuff. If we protect that with the master_mutex (since it also affects the unique of each master, oh well) we can mark these two IOCTL with DRM_UNLOCKED. While doing this I realized that the comment for the magic_map is outdated, I'v

[PATCH 2/7] drm: Protect master->unique with dev->master_mutex

2016-12-09 Thread Emil Velikov
On 9 December 2016 at 14:19, Daniel Vetter wrote: > No one looks at the major/minor versions except the unique/busid > stuff. If we protect that with the master_mutex (since it also affects > the unique of each master, oh well) we can mark these two IOCTL with > DRM_UNLOCKED. > > While doing this