Re: [Intel-gfx] [PATCH] drm/i915: avoid struct mutex output_poll mutex lock loop on unload

2010-10-04 Thread Dave Airlie
On Mon, Oct 4, 2010 at 6:49 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: On Sun,  3 Oct 2010 19:36:26 -0700, Keith Packard kei...@keithp.com wrote: Cancel the output polling work proc before acquiring the struct mutex to avoid acquiring the work proc mutex with the struct mutex held. This

Re: [Intel-gfx] [PATCH] drm/i915: avoid struct mutex output_poll mutex lock loop on unload

2010-10-04 Thread Chris Wilson
On Sun, 3 Oct 2010 19:36:26 -0700, Keith Packard kei...@keithp.com wrote: 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. I thought this

[Intel-gfx] [PATCH] drm/i915: avoid struct mutex output_poll mutex lock loop on unload

2010-10-03 Thread Keith Packard
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 kei...@keithp.com --- drivers/gpu/drm/i915/intel_display.c |