]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: avoid struct mutex output_poll mutex lock loop on unload
authorKeith Packard <keithp@keithp.com>
Mon, 4 Oct 2010 02:36:26 +0000 (19:36 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Oct 2010 08:43:16 +0000 (09:43 +0100)
commit8671683f2833fc33e1a733c6341b84c0ecb80ed3
tree937bdba45e1fc7152daa48f9bcd83aee3462aaf8
parent19b52db3f7fafdb3d51d5c61c4c508d153c0186a
drm/i915: avoid struct mutex output_poll mutex lock loop on unload

Cancel the output polling work proc before acquiring the struct mutex
to avoid acquiring the work proc mutex with the struct mutex
held. This avoids inverting the lock order seen when the work proc
runs.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c