]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Claim vma while under closed_lock in i915_vma_parked()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Dec 2019 21:41:59 +0000 (21:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Dec 2019 11:16:49 +0000 (11:16 +0000)
commit5d93067baa0b40d1dffd9f4f3d6dbcbcbda539a7
tree199b1083628f21d1355e46353f9f382d59222eb1
parent434f6c06afe106c1fe14ed250e3db6a805518580
drm/i915: Claim vma while under closed_lock in i915_vma_parked()

Remove the vma we wish to destroy from the gt->closed_list to avoid
having two i915_vma_parked() try and free it.

Fixes: 13841c5e03f4 ("drm/i915/gem: Try to flush pending unbind events")
References: 587eefbe9921 ("drm/i915: Pull i915_vma_pin under the vm->mutex")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191205214159.829727-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c