drm/i915: Take request reference before arming the watchdog timer
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 26 Mar 2021 10:57:59 +0000 (10:57 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 9 Apr 2021 13:49:10 +0000 (14:49 +0100)
commitf7c379779161d364eb30338529490eac7dc377b7
tree31c75ffa0dab642e06c642b2e1782e95629a483d
parentcade4696ff8dadf5521eba0d92abad20c20097e1
drm/i915: Take request reference before arming the watchdog timer

Reference needs to be taken before arming the timer. Luckily, given the
default timer period of 20s, the potential to hit the race is extremely
unlikely.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Fixes: 9b4d0598ee94 ("drm/i915: Request watchdog infrastructure")
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210326105759.2387104-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_request.c