drm/sched: fix timeout handling v2
authorChristian König <christian.koenig@amd.com>
Mon, 8 Oct 2018 11:30:12 +0000 (13:30 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Oct 2018 17:52:32 +0000 (12:52 -0500)
commit0efd2d2f68cd5dbddf4ecd974c33133257d16a8e
treec62d03c24fb81048755ca69a92ba4f0d912dfa81
parentb981c86f03068ca63391bb54ac4686e7ac419fa3
drm/sched: fix timeout handling v2

We need to make sure that we don't race between job completion and
timeout.

v2: put revert label after calling the handling manually

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nayan Deshmukh <nayan26deshmukh@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/sched_main.c