]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/vmwgfx: Fix a couple of lock dependency violations
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 9 Mar 2015 08:56:21 +0000 (01:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 12:59:45 +0000 (13:59 +0100)
commitb197b203b126331d9185df0af85e578f3fc7e0d3
tree0e603e6197015adddde6a903bd54cdba50e69a28
parentcd32cd8c9cab3da5dbf6d122f40e19a693a00b39
drm/vmwgfx: Fix a couple of lock dependency violations

commit 5151adb37a5918957f4c33a8d8e7629c0fb00563 upstream.

Experimental lockdep annotation added to the TTM lock has unveiled a
couple of lock dependency violations in the vmwgfx driver. In both
cases it turns out that the device_private::reservation_sem is not
needed so the offending code is moved out of that lock.

Acked-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c