]> Git Repo - linux.git/commitdiff
rcu/nocb: Remove NOCB deferred wakeup from rcutree_dead_cpu()
authorFrederic Weisbecker <[email protected]>
Wed, 19 May 2021 00:09:29 +0000 (02:09 +0200)
committerPaul E. McKenney <[email protected]>
Tue, 20 Jul 2021 20:41:51 +0000 (13:41 -0700)
At CPU offline time, we must handle any pending wakeup for the nocb_gp
kthread linked to the outgoing CPU.

Now we are making sure of that twice:

1) From rcu_report_dead() when the outgoing CPU makes the very last
   local cleanups by itself before switching offline.

2) From rcutree_dead_cpu(). Here the offlining CPU has gone and is truly
   now offline. Another CPU takes care of post-portem cleaning up and
   check if the offline CPU had pending wakeup.

Both ways are fine but we have to choose one or the other because we
don't need to repeat that action. Simply benefit from cache locality
and keep only the first solution.

Signed-off-by: Frederic Weisbecker <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
kernel/rcu/tree.c

index b6eb480402e05a3fbb8a7b09961b5ff358762c7a..0fda98a0d12e9b969460d3a7675c5e909f28939d 100644 (file)
@@ -2471,9 +2471,6 @@ int rcutree_dead_cpu(unsigned int cpu)
        WRITE_ONCE(rcu_state.n_online_cpus, rcu_state.n_online_cpus - 1);
        /* Adjust any no-longer-needed kthreads. */
        rcu_boost_kthread_setaffinity(rnp, -1);
-       /* Do any needed no-CB deferred wakeups from this CPU. */
-       do_nocb_deferred_wakeup(per_cpu_ptr(&rcu_data, cpu));
-
        // Stop-machine done, so allow nohz_full to disable tick.
        tick_dep_clear(TICK_DEP_BIT_RCU);
        return 0;
This page took 0.065257 seconds and 4 git commands to generate.