linux-kernelorg-stable/kernel/sched
Peter Zijlstra 741ba80f6f sched: Relax the set_cpus_allowed_ptr() semantics
Now that we have KTHREAD_IS_PER_CPU to denote the critical per-cpu
tasks to retain during CPU offline, we can relax the warning in
set_cpus_allowed_ptr(). Any spurious kthread that wants to get on at
the last minute will get pushed off before it can run.

While during CPU online there is no harm, and actual benefit, to
allowing kthreads back on early, it simplifies hotplug code and fixes
a number of outstanding races.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Lai jiangshan <jiangshanlai@gmail.com>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Tested-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/20210121103507.240724591@infradead.org
2021-01-22 15:09:44 +01:00
..
Makefile
autogroup.c
autogroup.h
clock.c
completion.c
core.c sched: Relax the set_cpus_allowed_ptr() semantics 2021-01-22 15:09:44 +01:00
cpuacct.c
cpudeadline.c sched,rt: Use the full cpumask for balancing 2020-11-10 18:39:00 +01:00
cpudeadline.h
cpufreq.c
cpufreq_schedutil.c Merge branch 'pm-cpufreq' 2020-12-22 17:59:11 +01:00
cpupri.c Merge branch 'sched/migrate-disable' 2020-11-10 18:39:04 +01:00
cpupri.h sched/cpupri: Add CPUPRI_HIGHER 2020-10-29 11:00:30 +01:00
cputime.c irqtime: Move irqtime entry accounting after irq offset incrementation 2020-12-02 20:20:05 +01:00
deadline.c Merge branch 'linus' into sched/core, to resolve semantic conflict 2020-11-27 11:10:50 +01:00
debug.c sched/debug: Fix memory corruption caused by multiple small reads of flags 2020-11-10 18:38:49 +01:00
fair.c sched/fair: Trivial correction of the newidle_balance() comment 2020-12-11 10:30:44 +01:00
features.h
idle.c Scheduler updates: 2020-12-14 18:29:11 -08:00
isolation.c
loadavg.c
membarrier.c Scheduler updates: 2020-12-14 18:29:11 -08:00
pelt.c
pelt.h
psi.c
rt.c sched: Remove select_task_rq()'s sd_flag parameter 2020-11-10 18:39:06 +01:00
sched-pelt.h
sched.h sched: Prepare to use balance_push in ttwu() 2021-01-22 15:09:43 +01:00
smp.h
stats.c
stats.h
stop_task.c sched: Remove select_task_rq()'s sd_flag parameter 2020-11-10 18:39:06 +01:00
swait.c
topology.c sched/topology: Condition EAS enablement on FIE support 2020-11-19 11:25:47 +01:00
wait.c sched/wait: Add add_wait_queue_priority() 2020-11-15 09:49:09 -05:00
wait_bit.c