Re: [PATCH 09/39] sched: Add @reason to sched_class->rq_{on|off}line()

Peter Zijlstra
2024-06-24T11:32:31Z

On Wed, May 01, 2024 at 05:09:44AM -1000, Tejun Heo wrote:
> ->rq_{on|off}line are called either during CPU hotplug or cpuset partition
> updates. A planned BPF extensible sched_class wants to tell the BPF
> scheduler progs about CPU hotplug events in a way that's synchronized with
> rq state changes.
>
> As the BPF scheduler progs aren't necessarily affected by cpuset partition
> updates, we need a way to distinguish the two types of events. Let's add an
> argument to tell them apart.

That would be a bug. Must not be able to ignore partitions.