Re: [PATCH 0/4] sched/rt: Distribute tasks in find_lowest_rq()

From: Peter Zijlstra
Date: Wed Apr 15 2020 - 05:40:26 EST


On Tue, Apr 14, 2020 at 04:27:42PM -0400, Steven Rostedt wrote:
> On Tue, 14 Apr 2020 19:58:49 +0100
> Valentin Schneider <valentin.schneider@xxxxxxx> wrote:
>
> > To move this forward, I would suggest renaming the current cpumask_any_*()
> > into cpumask_first_*(), and THEN introduce the new pseudo-random
> > ones. People are then free to hand-fix specific locations if it makes sense
> > there, like you're doing for RT.
>
> Or leave "cpumask_any()" as is, and create a new "cpumask_random()" for
> this purpose.

Well, that's just twisting words, not sure I like that. 'Any' really
means 'any'. So in order to preserve long term sanity, I'd vote for
Valentin's approach of converting existing users over to first.