drm/i915: Acquire the backing storage outside of struct_mutex in set-domain
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Oct 2016 12:58:41 +0000 (13:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Oct 2016 19:53:49 +0000 (20:53 +0100)
commit40e62d5d6be8b4999068da31ee6aca7ca76669ee
treef32c81bc8d3e6085c60959a4c4f2f51757071ce1
parentfe115628d567ba83a1498c585604d9035842b57c
drm/i915: Acquire the backing storage outside of struct_mutex in set-domain

As we can locklessly (well struct_mutex-lessly) acquire the backing
storage, do so in set-domain-ioctl to reduce the contention on the
struct_mutex.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161028125858.23563-18-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c