drm/amdgpu: fix and cleanup job destruction
authorChristian König <christian.koenig@amd.com>
Thu, 19 May 2016 07:54:15 +0000 (09:54 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:50:54 +0000 (14:50 -0400)
commitc5f74f7802775b9ccdb0a4fd90e0c7d0b03da9fa
tree3db2ce910290e8005a5d562c2a107d32f9c0f363
parentf42d20a94284149bc6815a66ddb0b449f9f2fe74
drm/amdgpu: fix and cleanup job destruction

Remove the job reference counting and just properly destroy it from a
work item which blocks on any potential running timeout handler.

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