Re: [PATCH 05/18] sched: Pass next class to sched_change_begin()
From: Andrea Righi
Date: Tue Sep 15 2026 - 15:45:45 EST
On Thu, Sep 10, 2026 at 12:12:22PM +0200, Peter Zijlstra wrote:
> On Mon, Aug 31, 2026 at 03:42:15PM +0200, Andrea Righi wrote:
> > sched_change_begin() currently only receives the task whose scheduling
> > state is being changed. It cannot distinguish a class transition from a
> > same-class update before recording the task queueing state.
>
> Uh, yes it can. That's what {EN,DE}QUEUE_CLASS are for, no?
Right, I overlooked DEQUEUE_CLASS. I'll drop this patch and make the later
proxy-donor handling conditional on DEQUEUE_CLASS directly.
Thanks,
-Andrea