Re: [RANT][PATCH] sched_ext: Fix stale fair load weight after renice under SCX
From: Andrea Righi
Date: Fri Dec 04 2026 - 11:33:38 EST
On Fri, Dec 04, 2026 at 10:59:14AM -0500, Steven Rostedt wrote:
> On Fri, 4 Dec 2026 16:40:23 +0100
> Andrea Righi <arighi@xxxxxxxxxx> wrote:
>
> > We already discussed this with Zicheng and Peter [1]. The approach we
> > settled on was to rebuild the load weight in switching_to_fair(), so
> > fair prepares its own state before enqueue, rather than having sched_ext
> > maintain fair's inactive state.
>
> Thanks for the update. I'll go back and tell my junior AI agent that its
> patch is not going to be accepted, and let it cry over its wasted tokens ;-)
Hehe, tell your junior AI engineer to check on the list for similar
fixes. That should work. :)
-Andrea