diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-01-16 11:56:37 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-01-22 15:09:44 +0100 |
commit | 741ba80f6f9a4702089c122129f22df9774b3e64 (patch) | |
tree | 8af509c342e69ab7aed56b1b09309bfb9fe748c2 /mm/dmapool.c | |
parent | 5ba2ffba13a1e24e7b153683e97300f9cc6f605a (diff) | |
download | linux-741ba80f6f9a4702089c122129f22df9774b3e64.tar.bz2 |
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
Diffstat (limited to 'mm/dmapool.c')
0 files changed, 0 insertions, 0 deletions