]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite676c145c334a23533b149e1cfae8fadb780436e
tree28d8aa6e9d9818589f2abee0ca1f798c3cd63255
parentaa2b5899739b79586a6151f1bddf804b12ff6c2f
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