Skip to content

Commit 8623b52

Browse files
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 <[email protected]> Reviewed-by: Andrey Grodzovsky <[email protected]> Reviewed-by: Kent Russell <[email protected]> Link: https://patchwork.freedesktop.org/patch/361303/
1 parent d918fe4 commit 8623b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/scheduler/sched_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ drm_sched_get_cleanup_job(struct drm_gpu_scheduler *sched)
676676
*/
677677
if ((sched->timeout != MAX_SCHEDULE_TIMEOUT &&
678678
!cancel_delayed_work(&sched->work_tdr)) ||
679-
__kthread_should_park(sched->thread))
679+
kthread_should_park())
680680
return NULL;
681681

682682
spin_lock(&sched->job_list_lock);

0 commit comments

Comments
 (0)