Skip to content

Commit

Permalink
Merge pull request torvalds#73 from sched-ext/scx-fix-crash
Browse files Browse the repository at this point in the history
Fix sched_ext crashes on v6.6
  • Loading branch information
Byte-Lab authored Nov 6, 2023
2 parents d6a788a + a60668f commit 21777bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/sched/ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,11 @@ scx_task_iter_next_filtered(struct scx_task_iter *iter)
struct task_struct *p;

while ((p = scx_task_iter_next(iter))) {
if (!is_idle_task(p))
/*
* is_idle_task() tests %PF_IDLE which may not be set for CPUs
* which haven't yet been onlined. Test sched_class directly.
*/
if (p->sched_class != &idle_sched_class)
return p;
}
return NULL;
Expand Down

0 comments on commit 21777bc

Please sign in to comment.