summary refs log tree commit diff
path: root/.gitignore
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-07-02 09:32:03 +0100
committerRodrigo Vivi <rodrigo.vivi@intel.com>2020-07-06 17:16:00 -0700
commit42723673a193d5f8e30dba6ea9826d42262a502b (patch)
tree87a34444af7dd5c15a5ba23e7b19e54eb967d064 /.gitignore
parent9eb0463cfe65d826c97fa26b904a64f52c94300d (diff)
downloadlinux-42723673a193d5f8e30dba6ea9826d42262a502b.tar.gz
drm/i915: Drop vm.ref for duplicate vma on construction
As we allow for parallel threads to create the same vma instance
concurrently, and we only filter out the duplicates upon reacquiring the
spinlock for the rbtree, we have to free the loser of the constructors'
race. When freeing, we should also drop any resource references acquired
for the redundant vma.

Fixes: 2850748ef876 ("drm/i915: Pull i915_vma_pin under the vm->mutex")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: <stable@vger.kernel.org> # v5.5+
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200702083225.20044-1-chris@chris-wilson.co.uk
(cherry picked from commit 2377427cdd2b7514eb4c40241cf5c4dec63c1bec)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions