drm/amdgpu:use job's list instead of check fence
authorMonk Liu <Monk.Liu@amd.com>
Thu, 11 May 2017 05:59:15 +0000 (13:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:41 +0000 (17:40 -0400)
commit4f059ecdcec2dd6fab757a16cc552093bfd321ee
treed7cafdf6d2d308a22af7a2fa918dd3662d8b8cb8
parent65781c78ad74e4260fbec92c0ecc05738044e177
drm/amdgpu:use job's list instead of check fence

because if the fence is really signaled, it could already
released so the fence pointer is a wild pointer, but if
we use job->base.node we are safe because job will not
be released untill amdgpu_job_timedout finished.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c