drm/i915/dmabuf: Acquire the backing storage outside of struct_mutex
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Oct 2016 12:58:38 +0000 (13:58 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Oct 2016 19:53:48 +0000 (20:53 +0100)
commit7dd737f377ffb59010b6811f934998d42f24a8bd
treebe2db11e88c28d723eca16c7096d4d6c79fa6a1f
parent1233e2db199dea015391db03d3478b3392201c41
drm/i915/dmabuf: Acquire the backing storage outside of struct_mutex

Use the per-object mm.lock to allocate the backing storage (and hold a
reference to it across the dmabuf access) without resorting to
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-15-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_dmabuf.c