]> git.baikalelectronics.ru Git - kernel.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)
commitb60ff2c78b2251da7586470d939e10f79f472c89
tree6ff7b2284957af9efb3b7a3df3395d75c18cb366
parent231d406180565b3db2bc9adcb73899bb75d964b8
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