aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/i915/i915_request.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-03-23 09:28:41 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-03-23 11:18:16 +0000
commit93159e12353c2a47e5576d642845a91fa00530bf (patch)
tree659f23da444f42b11a2e25a6b360883b02fd4a37 /drivers/gpu/drm/i915/i915_request.c
parentdrm/i915: Avoid live-lock with i915_vma_parked() (diff)
downloadwireguard-linux-93159e12353c2a47e5576d642845a91fa00530bf.tar.xz
wireguard-linux-93159e12353c2a47e5576d642845a91fa00530bf.zip
drm/i915/gem: Avoid gem_context->mutex for simple vma lookup
As we store the handle lookup inside a radix tree, we do not need the gem_context->mutex except until we need to insert our lookup into the common radix tree. This takes a small bit of rearranging to ensure that the lut we insert into the tree is ready prior to actually inserting it (as soon as it is exposed via the radixtree, it is visible to any other submission). v2: For brownie points, remove the goto spaghetti. v3: Tighten up the closed-handle checks. 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/20200323092841.22240-8-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.c')
0 files changed, 0 insertions, 0 deletions