diff options
author | 2014-02-25 19:57:44 +0100 | |
---|---|---|
committer | 2014-03-28 14:19:02 +0100 | |
commit | c996fd0b956450563454e7ccc97a82ca31f9d043 (patch) | |
tree | 68fa27376f60773bd2feaf5340351cb29e0a834b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm: Remove the minor master list (diff) | |
download | linux-dev-c996fd0b956450563454e7ccc97a82ca31f9d043.tar.xz linux-dev-c996fd0b956450563454e7ccc97a82ca31f9d043.zip |
drm: Protect the master management with a drm_device::master_mutex v3
The master management was previously protected by the drm_device::struct_mutex.
In order to avoid locking order violations in a reworked dropped master
security check in the vmwgfx driver, break it out into a separate master_mutex.
Locking order is master_mutex -> struct_mutex.
Also remove drm_master::blocked since it's not used.
v2: Add an inline comment about what drm_device::master_mutex is protecting.
v3: Remove unneeded struct_mutex locks. Fix error returns in
drm_setmaster_ioctl().
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions