Skip to content

Commit 35ba6ae

Browse files
hoshinolinajannau
authored andcommitted
DO NOT MERGE: drm/sched: XXX workaround race in drm_sched_can_queue().
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 8ff1526 commit 35ba6ae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/scheduler/sched_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ static bool drm_sched_can_queue(struct drm_gpu_scheduler *sched,
127127
if (!s_job)
128128
return false;
129129

130+
// XXX the below code can race job execution.
131+
return true;
132+
130133
if (sched->ops->update_job_credits) {
131134
s_job->credits = sched->ops->update_job_credits(s_job);
132135

0 commit comments

Comments
 (0)