Skip to content

Commit 1c1c1d9

Browse files
committed
doc: Use rcu_barrier() to rate-limit RCU callbacks
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 <[email protected]>
1 parent ed336c6 commit 1c1c1d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/RCU/checklist.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ over a rather long period of time, but improvements are always welcome!
305305
the machine.
306306

307307
d. Periodically invoke synchronize_rcu(), permitting a limited
308-
number of updates per grace period.
308+
number of updates per grace period. Better yet, periodically
309+
invoke rcu_barrier() to wait for all outstanding callbacks.
309310

310311
The same cautions apply to call_srcu() and kfree_rcu().
311312

0 commit comments

Comments
 (0)