diff options
author | Frederic Weisbecker <frederic@kernel.org> | 2023-09-08 23:35:59 +0300 |
---|---|---|
committer | Frederic Weisbecker <frederic@kernel.org> | 2023-10-04 18:35:56 +0300 |
commit | c964c1f5ee96e1460606d44f80a47bdacd8fe568 (patch) | |
tree | 6de35eee1d52751eec81405a8b62b5f886c39cda /arch/arm64 | |
parent | 358662a9616c5078dc4d389d6bceeb5974f4aa97 (diff) | |
download | linux-c964c1f5ee96e1460606d44f80a47bdacd8fe568.tar.xz |
rcu: Assume rcu_report_dead() is always called locally
rcu_report_dead() has to be called locally by the CPU that is going to
exit the RCU state machine. Passing a cpu argument here is error-prone
and leaves the possibility for a racy remote call.
Use local access instead.
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/kernel/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 960b98b43506..8fa646c90c67 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -401,7 +401,7 @@ void __noreturn cpu_die_early(void) /* Mark this CPU absent */ set_cpu_present(cpu, 0); - rcu_report_dead(cpu); + rcu_report_dead(); if (IS_ENABLED(CONFIG_HOTPLUG_CPU)) { update_cpu_boot_status(CPU_KILL_ME); |