drm/i915: Hold the spinlock whilst resetting unpin_work along error path
commit642c0447f9c08aff89eefb0ff3f8cf16f7eb8235
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 May 2010 12:18:13 +0000 (27 13:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:30:04 +0000 (2 10:30 -0700)
tree455f720b09ce1e3c6e96df5660745d932a200752
parent430155d430dd1496ecaebc8035c79dc5506ae4f5
drm/i915: Hold the spinlock whilst resetting unpin_work along error path

commit 468f0b44ce4b002ca7d9260f802a341854752c02 upstream.

Delay taking the mutex until we need to and ensure that we hold the
spinlock when resetting unpin_work on the error path. Also defer the
debugging print messages until after we have released the spinlock.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/intel_display.c