drm/i915/selftests: Release ctx->engine_mutex after iteration
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Oct 2019 22:33:16 +0000 (23:33 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Oct 2019 09:07:25 +0000 (10:07 +0100)
commite16302cb673c13193c582ebcd17965e189bbe72b
tree9e6b69781811308d5459a7c52cede304e208fc2b
parentf79520bb333792fb23a32352f83d8d59a525cec9
drm/i915/selftests: Release ctx->engine_mutex after iteration

A lock once taken must be released again.

Fixes: c31c9e82ee8a ("drm/i915/selftests: Teach switch_to_context() to use the context")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191022223316.12662-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem.c