Skip to content

Commit 37889ce

Browse files
committed
Merge tag 'sched_ext-for-6.17-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext
Pull sched_ext fixes from Tejun Heo: - Fix build failure when !FAIR_GROUP_SCHED && EXT_GROUP_SCHED - Revert "sched_ext: Skip per-CPU tasks in scx_bpf_reenqueue_local()" which was causing issues with per-CPU task scheduling and reenqueuing behavior * tag 'sched_ext-for-6.17-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext: sched_ext, sched/core: Fix build failure when !FAIR_GROUP_SCHED && EXT_GROUP_SCHED Revert "sched_ext: Skip per-CPU tasks in scx_bpf_reenqueue_local()"
2 parents 0595021 + a1eab4d commit 37889ce

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

kernel/sched/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9551,7 +9551,7 @@ static unsigned long tg_weight(struct task_group *tg)
95519551
#ifdef CONFIG_FAIR_GROUP_SCHED
95529552
return scale_load_down(tg->shares);
95539553
#else
9554-
return sched_weight_from_cgroup(tg->scx_weight);
9554+
return sched_weight_from_cgroup(tg->scx.weight);
95559555
#endif
95569556
}
95579557

kernel/sched/ext.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6788,12 +6788,8 @@ __bpf_kfunc u32 scx_bpf_reenqueue_local(void)
67886788
* CPUs disagree, they use %ENQUEUE_RESTORE which is bypassed to
67896789
* the current local DSQ for running tasks and thus are not
67906790
* visible to the BPF scheduler.
6791-
*
6792-
* Also skip re-enqueueing tasks that can only run on this
6793-
* CPU, as they would just be re-added to the same local
6794-
* DSQ without any benefit.
67956791
*/
6796-
if (p->migration_pending || is_migration_disabled(p) || p->nr_cpus_allowed == 1)
6792+
if (p->migration_pending)
67976793
continue;
67986794

67996795
dispatch_dequeue(rq, p);

0 commit comments

Comments
 (0)