]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commit0d639883ee26359e1bf38195df1dbca0f879e239
tree6ff7b2284957af9efb3b7a3df3395d75c18cb366
parent7d86cf1a4fc0c0bdb6947185c6fe71301dfea7b1
drm: make minors independent of global lock

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