drm/i915: unload: fix unpin_work related races
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 20 Aug 2010 20:26:30 +0000 (22:26 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Sep 2010 09:13:27 +0000 (10:13 +0100)
Kill any outstanding unpin_work when destroying the corresponding
crtc. Then flush the workqueue before the gem teardown, in case
any unpin work is still outstanding.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

No differences found