drm: make minors independent of global lock
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 24 Feb 2014 14:53:25 +0000 (15:53 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 16 Mar 2014 11:54:21 +0000 (12:54 +0100)
We used to protect minor-lookup and setup by the global drm lock. To
continue our attempts of dropping drm_global_mutex, this patch makes the
minor management independent of it. Furthermore, we make it all atomic and
switch to spin-locks instead of a mutex.

Now that minor-lookup is independent, we also move the
"drm_is_unplugged()" test into the minor-lookup path. There is no reason
to ever return a minor for unplugged objects, so keep that logic internal.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_stub.c

Simple merge
Simple merge