Re: [PATCH v2 2/3] sched/fair: Make cfs_rq::idle the sum of ancestor tg::idle

From: Kayra Cizmeci

Date: Sat Nov 07 2026 - 08:15:53 EST


Hi Peter!


On Sat, Nov 07, 2026 at 12:36:39PM +0100, Peter Zijlstra wrote:
>
> Rather than keeping cfs_rq::idle as a copy of tg::idle, make it the sum of
> all ancestor tg::idle. This makes it trivial to tell if the current cgroup
> is marked idle somewhere along its ancestral path.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>

First of all,

Reviewed-by: Kayra Cizmeci <kayracizmeci@xxxxxxxxx>

With this, now tasks in an idle cfs_rq cannot be buddies.
But IMO that's more of a fix. Maybe it would be good to
add a fixes tag?


Cheers,

Kayra