drm/i915: Check context status before looking up our obj/vma
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 16 Aug 2017 08:52:05 +0000 (09:52 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Aug 2017 10:57:13 +0000 (11:57 +0100)
commit8bcbfb12818f811d63801b71d25809690d1798fc
tree530b7c882fc4cbba06f77f2f102d79545f73026d
parentf2f5c0610fbc251b127a6fffda6c651288695430
drm/i915: Check context status before looking up our obj/vma

Since we keep the context around across the slow lookup where we may
drop the struct_mutex, we should double check that the context is still
valid upon reacquisition.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170816085210.4199-2-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_gem_execbuffer.c