drm/amdgpu: fix wait queue handling in the scheduler
authorChristian König <christian.koenig@amd.com>
Tue, 25 Aug 2015 19:39:31 +0000 (21:39 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Aug 2015 21:55:07 +0000 (17:55 -0400)
commitc2b6bd7e91aad8440a2f55bdbde6f5a8ae19fac5
treea37deed40cd232edcdcb942bb3ffbe76048a1857
parentbd755d08709f05a81104e8f81d721b5cc353a2b3
drm/amdgpu: fix wait queue handling in the scheduler

Freeing up a queue after signalling it isn't race free.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.h