drm/i915: Rearrange acquisition of mutex during pwrite
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Oct 2010 14:03:58 +0000 (15:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Oct 2010 08:19:47 +0000 (09:19 +0100)
commitfbd5a26d500c7cd8943cc5f37ccc7e49cf386053
tree28d8aa6e9d9818589f2abee0ca1f798c3cd63255
parentb5e4feb6615fe07150f05bb0e0ccc0ff9138b9ec
drm/i915: Rearrange acquisition of mutex during pwrite

... to avoid reacquiring it to drop the object reference count on
exit. Note we have to make sure we now drop (and reacquire) the lock
around acquiring the mm semaphore on the slow paths.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c