Re: [PATCH 07/34] sched_ext: Introduce cgroup sub-sched support
From: Andrea Righi
Date: Thu Feb 26 2026 - 10:50:58 EST
On Tue, Feb 24, 2026 at 07:00:42PM -1000, Tejun Heo wrote:
...
> diff --git a/init/Kconfig b/init/Kconfig
> index c25869cf59c1..96ba2fa08883 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -1176,6 +1176,10 @@ config EXT_GROUP_SCHED
>
> endif #CGROUP_SCHED
>
> +config EXT_SUB_SCHED
> + def_bool y
> + depends on SCHED_CLASS_EXT
> +
It would be nice if we could opt to not build this. Also, if I disable
CONFIG_CGROUP:
kernel/sched/ext.c: In function ‘scx_dispatch_sched’:
kernel/sched/ext.c:2454:52: error: ‘struct sched_ext_entity’ has no member named ‘sched’
2454 | sch == rcu_access_pointer(prev->scx.sched);
| ^
Thanks,
-Andrea