drm/i915: Fix error checking/locking in perf/lookup_context()
authorImre Deak <imre.deak@intel.com>
Fri, 14 Jul 2017 15:12:41 +0000 (18:12 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 17 Jul 2017 11:22:17 +0000 (14:22 +0300)
commit635f56c342cd195a8059f24296fe7fd795aaa33d
tree19dd9322da0b48d228362e319f2cdc944cbd5954
parent58947144af34a08eee3388c1f039f199e80c0c6f
drm/i915: Fix error checking/locking in perf/lookup_context()

1acfc104cdf8 missed to convert this one caller to be lockless. The side
effect of that was that the error check in lookup_context() became
incorrect. Convert now this caller too.

Fixes: 1acfc104cdf ("drm/i915: Enable rcu-only context lookups")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170714151242.517-1-imre.deak@intel.com
drivers/gpu/drm/i915/i915_perf.c