Re: [PATCH 07/34] sched_ext: Introduce cgroup sub-sched support
From: Andrea Righi
Date: Thu Feb 26 2026 - 11:03:56 EST
On Tue, Feb 24, 2026 at 07:00:42PM -1000, Tejun Heo wrote:
...
> +/**
> + * scx_is_descendant - Test whether sched is a descendant
> + * @sch: sched to test
> + * @ancestor: ancestor sched to test against
> + *
> + * Test whether @sch is a descendant of @ancestor.
> + */
> +static bool scx_is_descendant(struct scx_sched *sch, struct scx_sched *ancestor)
> +{
> + if (sch->level < ancestor->level)
> + return false;
> + return sch->ancestors[ancestor->level] == ancestor;
> +}
This seems to be used only later (patch 31/34), so it's an unused function
for now and may break git bisect. Maybe we should introduce this later?
Thanks,
-Andrea