drm/i915: Use RCU for unlocked vm_idr lookup
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 30 Aug 2019 18:03:25 +0000 (19:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 30 Aug 2019 20:17:48 +0000 (21:17 +0100)
commitaabbe344dc3ca5f7d8263a02608ba6179e8a4499
tree0396b9f520b02c76456bb3220140515e7c9650ca
parentc1d143dd2ac8d481500fec4c0d715ff301d2766f
drm/i915: Use RCU for unlocked vm_idr lookup

Since i915_address_space is now RCU protected, we can do the vm_idr lookup
without taking the vm_idr_mutex, just with the rcu_read_lock() instead.

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/20190830180325.7755-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.c