doc: Use rcu_barrier() to rate-limit RCU callbacks
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 28 Jul 2022 19:04:00 +0000 (12:04 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 11:58:15 +0000 (04:58 -0700)
The checklist.rst document advises periodic synchronize_rcu() invocations
to prevent callback flooding.  However, rcu_barrier() is often a better
choice.  This commit therefore adds words to this effect.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/RCU/checklist.rst

index 2db206f..178ca75 100644 (file)
@@ -305,7 +305,8 @@ over a rather long period of time, but improvements are always welcome!
                the machine.
 
        d.      Periodically invoke synchronize_rcu(), permitting a limited
-               number of updates per grace period.
+               number of updates per grace period.  Better yet, periodically
+               invoke rcu_barrier() to wait for all outstanding callbacks.
 
        The same cautions apply to call_srcu() and kfree_rcu().