drm/i915: Be defensive when starting vma activity
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Aug 2019 10:05:31 +0000 (11:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Aug 2019 13:23:45 +0000 (14:23 +0100)
commit2833ddccbdb4a23d79070603eb271acb680818e2
tree194052224b99a31d52fd12e3d20e92b9f22a68a2
parent44c22f3f1a0a1a24b7d9b0afdd77bbb949e05ba1
drm/i915: Be defensive when starting vma activity

Before we acquire the vma for GPU activity, ensure that the underlying
object is not already in the process of being freed.

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