drm/i915/blt: Remove recursive vma->lock
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jun 2019 21:57:33 +0000 (22:57 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jun 2019 23:52:25 +0000 (00:52 +0100)
commitb2dbf8d982a4f02a00261a5f8f75d2f0bf765de4
tree58633bfd2156f99948b5fcc0c3b6bdb92654c425
parentfb993aa7a4049263fc1a139daf89fadc79a0ecc7
drm/i915/blt: Remove recursive vma->lock

As we have already plugged the w->dma into the reservation_object, and
have set ourselves up to automatically signal the request and w->dma on
completion, we do not need to export the rq->fence directly and just use
the w->dma fence.

This avoids having to take the reservation_lock inside the worker which
cross-release lockdep would complain about. :)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190621215733.12070-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_client_blt.c
drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c