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)
commit67e77c5ae8bff6f805d207541f1315051248a87b
tree56a845d734e9a8ed8027683ba0897fd95d280652
parent3dec0095f71e7d00b7f6180229fd32a2d0a6ce8d
drm/i915: unload: fix unpin_work related races

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>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/intel_display.c