From: Ben Widawsky Date: Sun, 20 Mar 2011 01:14:26 +0000 (-0700) Subject: drm/i915: fix ilk rc6 teardown locking X-Git-Tag: v3.0-rc1~312^2~4^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c34b850ee1e9f86b41706149d0954eee58757a3;p=pandora-kernel.git drm/i915: fix ilk rc6 teardown locking In the failure cases during rc6 initialization, both the power context and render context may get !refcount without holding struct_mutex. However, on rc6 disabling, the lock is held by the caller. Rearranged the locking so that it's safe in both cases. Signed-off-by: Ben Widawsky Signed-off-by: Chris Wilson Reviewed-by: Keith Packard Signed-off-by: Keith Packard --- Reading git-diff-tree failed