Skip to content

Commit 0b8c0e9

Browse files
committed
drm/i915/fbdev: Drain the suspend worker on retiring
Since the suspend_work can arm itself if the console_lock() is currently held elsewhere, simply calling flush_work() doesn't guarantee that the work is idle upon return. To do so requires using cancel_work_sync(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1468431285-28264-1-git-send-email-chris@chris-wilson.co.uk Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
1 parent e7852a4 commit 0b8c0e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/intel_fbdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ void intel_fbdev_fini(struct drm_device *dev)
768768
if (!ifbdev)
769769
return;
770770

771-
flush_work(&dev_priv->fbdev_suspend_work);
771+
cancel_work_sync(&dev_priv->fbdev_suspend_work);
772772
if (!current_is_async())
773773
intel_fbdev_sync(ifbdev);
774774

0 commit comments

Comments
 (0)