drm/i915/selftests: Trim struct_mutex duration for set-wedged selftest
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Jan 2019 13:22:29 +0000 (13:22 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Jan 2019 14:27:29 +0000 (14:27 +0000)
commitf3dccbdbdd94a3b255f9661df6048c4a6e372db0
treea0994719fb14ac9aa592b2a736dee0ff2cd1b27d
parenteb8d0f5af4ec2d172baf8b4b9a2199cd916b4e54
drm/i915/selftests: Trim struct_mutex duration for set-wedged selftest

Trim the struct_mutex hold and exclude the call to i915_gem_set_wedged()
as a reminder that it must be callable without struct_mutex held.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190125132230.22221-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_hangcheck.c