From: Ben Widawsky Date: Wed, 24 Apr 2013 06:15:29 +0000 (-0700) Subject: drm/i915: Assert mutex_is_locked on context lookup X-Git-Tag: v3.11-rc1~65^2~131^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=186507e9e8e89d5920305fdffd8cbba6366da795;p=pandora-kernel.git drm/i915: Assert mutex_is_locked on context lookup Because our context refcounting doesn't grab a ref at lookup time, it is unsafe to do so without the lock. NOTE: We don't have an easy way to put the assertion in the lookup function which is where this really belongs. Context switching is good enough because it actually asserts even more correctness by protecting the default_context. Signed-off-by: Ben Widawsky Reviewed-by: Jesse Barnes [danvet: s/BUG/WARN/] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed