OSDN Git Service

drm/i915/selftests: Hold task reference to reset worker
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Nov 2018 12:06:01 +0000 (12:06 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Nov 2018 14:32:16 +0000 (14:32 +0000)
commite32c8d3caefbb8ec734a0a79c8d4245f38c99d2a
treebeceacb272654e93d0c3feb7a73e9355ce5d20f3
parent2ac5e38ea4203852d6e99edd3cf11f044b0a409f
drm/i915/selftests: Hold task reference to reset worker

As the worker may exit by itself, we need to hold a task reference to it
in the parent.

References: https://bugs.freedesktop.org/show_bug.cgi?id=108735
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181120120601.24083-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_hangcheck.c