Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'sched_ext-for-6.17-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext

Pull sched_ext fixes from Tejun Heo:

- Fix a subtle bug during SCX enabling where a dead task skips init
but doesn't skip sched class switch leading to invalid task state
transition warning

- Cosmetic fix in selftests

* tag 'sched_ext-for-6.17-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext:
selftests/sched_ext: Remove duplicate sched.h header
sched/ext: Fix invalid task state transitions on class switch

+4 -1
+4
kernel/sched/ext.c
··· 5749 5749 __setscheduler_class(p->policy, p->prio); 5750 5750 struct sched_enq_and_set_ctx ctx; 5751 5751 5752 + if (!tryget_task_struct(p)) 5753 + continue; 5754 + 5752 5755 if (old_class != new_class && p->se.sched_delayed) 5753 5756 dequeue_task(task_rq(p), p, DEQUEUE_SLEEP | DEQUEUE_DELAYED); 5754 5757 ··· 5764 5761 sched_enq_and_set_task(&ctx); 5765 5762 5766 5763 check_class_changed(task_rq(p), p, old_class, p->prio); 5764 + put_task_struct(p); 5767 5765 } 5768 5766 scx_task_iter_stop(&sti); 5769 5767 percpu_up_write(&scx_fork_rwsem);
-1
tools/testing/selftests/sched_ext/hotplug.c
··· 6 6 #include <bpf/bpf.h> 7 7 #include <sched.h> 8 8 #include <scx/common.h> 9 - #include <sched.h> 10 9 #include <sys/wait.h> 11 10 #include <unistd.h> 12 11