[PATCH 0/2] sched: SCA vs hotplug vs stopper races fixes

From: Valentin Schneider
Date: Wed May 26 2021 - 16:58:26 EST


Hi folks,

This is the continuation of [1]. As Will noted, that patch isn't sufficient to
plug all the nasty races involving SCA, hotplug and the stopper task, hence
patch 2.

I have to apologize as this didn't see much testing (a CPU hog, a crazed
taskset, and some hotplugs in a loop), and unfortunately I need to call it a day
before running away to the british wilderness 'till Monday. I'll get back to it
then to expunge the remaining daftness.

[1]: http://lore.kernel.org/r/877djlhhmb.mognet@xxxxxxx

Cheers,
Valentin

Valentin Schneider (2):
sched: Don't defer CPU pick to migration_cpu_stop()
sched: Plug race between SCA, hotplug and migration_cpu_stop()

kernel/sched/core.c | 50 ++++++++++++++++++++++++++++++---------------
1 file changed, 33 insertions(+), 17 deletions(-)

--
2.25.1