Re: [RFC][PATCH 2/2] sched: proxy-exec: Add allow/prevent_migration hooks in the sched classes for proxy_tag_curr

From: John Stultz

Date: Fri Mar 06 2026 - 20:37:53 EST


On Thu, Mar 5, 2026 at 6:46 AM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> *lightbulb*... but, doesn't that mean that we don't need any of this at
> all, and could simply make sure RT/DL refuse to migrate task_on_cpu(p) ?
>

This does seem painfully obvious now. :)
Instead of trying to avoid putting current on the pushable list, we
can just check task_current() (since we do already check
task_on_cpu()) in task_is_pushable().

I'll switch to that and hopefully we can get rid of the whole
proxy_tag_curr gunk.

thanks
-john