From: Thomas Hellstrom Date: Tue, 25 Feb 2014 18:57:44 +0000 (+0100) Subject: drm: Protect the master management with a drm_device::master_mutex v3 X-Git-Tag: v3.15-rc1~51^2~25^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c996fd0b956450563454e7ccc97a82ca31f9d043;p=pandora-kernel.git 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 Reviewed-by: Brian Paul Reviewed-by: David Herrmann Acked-by: Daniel Vetter --- Reading git-diff-tree failed