Skip to content

Commit 02d59e3

Browse files
committed
sched_ext, sched/core: Fix build failure when !FAIR_GROUP_SCHED && EXT_GROUP_SCHED
JIRA: https://issues.redhat.com/browse/RHEL-111810 commit a1eab4d Author: Tejun Heo <tj@kernel.org> Date: Tue Sep 16 11:06:42 2025 -1000 sched_ext, sched/core: Fix build failure when !FAIR_GROUP_SCHED && EXT_GROUP_SCHED While collecting SCX related fields in struct task_group into struct scx_task_group, 6e6558a ("sched_ext, sched/core: Factor out struct scx_task_group") forgot update tg->scx_weight usage in tg_weight(), which leads to build failure when CONFIG_FAIR_GROUP_SCHED is disabled but CONFIG_EXT_GROUP_SCHED is enabled. Fix it. Fixes: 6e6558a ("sched_ext, sched/core: Factor out struct scx_task_group") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202509170230.MwZsJSWa-lkp@intel.com/ Tested-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Phil Auld <pauld@redhat.com>
1 parent 1911e31 commit 02d59e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9427,7 +9427,7 @@ static unsigned long tg_weight(struct task_group *tg)
94279427
#ifdef CONFIG_FAIR_GROUP_SCHED
94289428
return scale_load_down(tg->shares);
94299429
#else
9430-
return sched_weight_from_cgroup(tg->scx_weight);
9430+
return sched_weight_from_cgroup(tg->scx.weight);
94319431
#endif
94329432
}
94339433

0 commit comments

Comments
 (0)