diff options
author | Peter Zijlstra <[email protected]> | 2021-10-18 16:41:05 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2021-10-22 15:32:46 +0200 |
commit | 96611c26dc351c33f73b48756a9feacc109e5bab (patch) | |
tree | d1feeaf18f00f6777dceb73620de7938c94f2a13 /tools/testing/selftests/bpf/progs/test_prog_array_init.c | |
parent | 09089db79859cbccccd8df95b034f36f7027efa6 (diff) |
sched: Improve wake_up_all_idle_cpus() take #2
As reported by syzbot and experienced by Pavel, using cpus_read_lock()
in wake_up_all_idle_cpus() generates lock inversion (against mmap_sem
and possibly others).
Instead, shrink the preempt disable region by iterating all CPUs and
checking the online status for each individual CPU while having
preemption disabled.
Fixes: 8850cb663b5c ("sched: Simplify wake_up_*idle*()")
Reported-by: [email protected]
Reported-by: Pavel Machek <[email protected]>
Reported-by: Qian Cai <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Tested-by: Qian Cai <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions