Re: [PATCH v34 08/14] sched/proxy: Invoke migrate_task_rq() on proxy-migration
From: K Prateek Nayak
Date: Wed Dec 02 2026 - 22:22:37 EST
Hello John,
On 12/3/2026 3:21 AM, John Stultz wrote:
>> Hrm. I guess my worry there was the trace event might not be wanted on
>> proxy migrations, as existing tooling may not understand it,
>> especially all the sleeping owner activations potentially bouncing
>> things around.
I do think it would be nice to trace it honestly to know if the waiters
are following the owners or not.
>> Otherwise, I guess it does look doable. I'll take a stab at it.
> So, unfortunately (unless I'm missing another one of Andrea's
> patches), we still hit the
> WARN_ON_ONCE(state != TASK_RUNNING && state != TASK_WAKING && !p->on_rq);
Checking ... && !p->on_rq && !task_is_blocked(p) at the end should be
correct I feel if we can move proxy_set_task_cpu() into the blocked_lock
critical section since "p->blocked_on" is stable then.
Thoughts?
> warnings on sleeping owner activations when using the full set_task_cpu() via:
> try_to_wake_up() -> activate_blocked_waiters() ->
> do_activate_blocked_waiter() -> proxy_set_task_cpu() -> set_task_cpu()
>
> I guess we could loosen that warning up as well? Any preferences?
I don't have any strong preference - apart from the couple of possible
races in the final patch, most of my suggestions are nitpicks.
--
Thanks and Regards,
Prateek