drm/scheduler: fix drm_sched_get_cleanup_job
authorChristian König <christian.koenig@amd.com>
Sat, 11 Apr 2020 09:54:01 +0000 (11:54 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 15 Apr 2020 09:09:13 +0000 (11:09 +0200)
commit8623b5255ae7ccaf276aac3920787bf575fa6b37
tree491f2196bff1fb43e2314e6d91a748b2b09ad626
parentd918fe4287153e06233ded08aa54f1ad41cb485b
drm/scheduler: fix drm_sched_get_cleanup_job

We are racing to initialize sched->thread here, just always check the
current thread.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Kent Russell <kent.russell@amd.com>
Link: https://patchwork.freedesktop.org/patch/361303/
drivers/gpu/drm/scheduler/sched_main.c