From: Daniel Vetter Date: Fri, 20 Aug 2010 16:26:46 +0000 (+0200) Subject: drm/i915: unload: fix hotplug_work races X-Git-Tag: v2.6.37-rc1~92^2~28^2~258 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c0d93500eb50098e4e35b8b79e073f2f2f5b773;p=pandora-kernel.git drm/i915: unload: fix hotplug_work races hotplug_work is queued by the hotplug interrupt and only either emits a hotplug uevent or queues a crt poll slow-work. No other locking. So it's safe to cancel this work _after_ irq's have been turned off. But before the modesetting objects are destroyed because the hotplug function accesses them (without locking). The current code (for kms) only switches irqs off after modesetting teardown, hence move the irq teardown into the modeset cleanup right before the crtc cleanup. Signed-off-by: Daniel Vetter Signed-off-by: Chris Wilson --- Reading git-diff-tree failed