drm/i915/dmabuf: Tighten struct_mutex for unmap_dma_buf
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Apr 2016 11:11:09 +0000 (12:11 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Apr 2016 16:10:56 +0000 (17:10 +0100)
commit6d19245f187b28541ea9b077f88d8367054823cb
treeacb1ec03f6f7cff880511f8fcc9e3887218176d4
parentb1e429fe3ba7b10b8c6875b6dec1d62e1c252729
drm/i915/dmabuf: Tighten struct_mutex for unmap_dma_buf

We only need the struct_mutex to manipulate the pages_pin_count on the
object, we do not need to hold our BKL when freeing the exported
scatterlist.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460113874-17366-2-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_dmabuf.c