rcu: Make synchronize_rcu() fastpath update only boot-CPU counters
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 5 Aug 2022 22:42:25 +0000 (15:42 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 12:09:22 +0000 (05:09 -0700)
commitd761de8a7dcef8e8e9e20a543f85a2c079ae3d0d
treee2016c6787384500b8f3520c78782dbc3d5b6230
parentb3cdd0a79c875d5e9cac9f6555485031ce5bea81
rcu: Make synchronize_rcu() fastpath update only boot-CPU counters

Large systems can have hundreds of rcu_node structures, and updating
counters in each of them might slow down booting.  This commit therefore
updates only the counters in those rcu_node structures corresponding
to the boot CPU, up to and including the root rcu_node structure.

The counters for the remaining rcu_node structures are updated by the
rcu_scheduler_starting() function, which executes just before the first
non-boot kthread is spawned.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c