]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commit
drm/i915: more struct_mutex locking
authorHugh Dickins <hughd@google.com>
Mon, 27 Jun 2011 23:18:20 +0000 (16:18 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 28 Jun 2011 00:00:35 +0000 (17:00 -0700)
commit1e5216e43846b7758b2a04b3612c475608a4b708
tree266881071ef862ebc4aaaf008591354b4ebfefa9
parent8bc47de33569a111092a48465eb26cd855117e27
drm/i915: more struct_mutex locking

When auditing the locking in i915_gem.c (for a prospective change which I
then abandoned), I noticed two places where struct_mutex is not held
across GEM object manipulations that would usually require it.  Since one
is in initial setup and the other in driver unload, I'm guessing the mutex
is not required for either; but post a patch in case it is.

Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Keith Packard <keithp@keithp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/intel_overlay.c