]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move vma lookup to its own lock
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Jan 2019 10:23:54 +0000 (10:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Jan 2019 16:24:16 +0000 (16:24 +0000)
commitf82ee26b975ca64a3807e9220fc0953322c12599
tree6125ac8cf3beed06aa5eb3faa905deab956e24f4
parent5d4a5422acadbd3de8680543019c3d77bf129d41
drm/i915: Move vma lookup to its own lock

Remove the struct_mutex requirement for looking up the vma for an
object.

v2: Highlight how the race for duplicate vma creation is resolved on
reacquiring the lock with a short comment.

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/20190128102356.15037-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_object.h
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h
drivers/gpu/drm/i915/selftests/i915_vma.c