drm/amd/sched: fix job tear down order v2
authorChristian König <christian.koenig@amd.com>
Fri, 13 Oct 2017 08:58:15 +0000 (10:58 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:08 +0000 (15:27 -0400)
commit7fd5e36caec1598c49ef97d3e53cdd89c1da2770
tree6b5e15a1497678768418e253dbe917645b477ad3
parente1d515052f9075eb1b791b21467d79db3529db83
drm/amd/sched: fix job tear down order v2

Move the trace before we signal the scheduler fence and drop the
scheduler fence reference directly before we free the job.

v2: keep extra s_fence reference

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Liu, Monk <Monk.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c