Re: [PATCH 12/14] sched: Add shared runqueue locking to __task_rq_lock()

Peter Zijlstra
2025-09-26T10:36:40Z

On Thu, Sep 25, 2025 at 11:43:18AM -1000, Tejun Heo wrote:
> Yes, I was on a similar train of thought. The only reasonable way that I can
> think of for solving this for BPF managed tasks is giving each task its own
> inner sched lock, which makes sense as all sched operations (except for
> things like watchdog) are per-task and we don't really need wider scope
> locking.

Like I've said before; I really don't understand how that would be
helpful at all.

How can you migrate a task by holding a per-task lock?