Skip to content

Commit 6716f4d

Browse files
committed
rcu: Update synchronize_rcu_mult() comment for call_rcu_hurry()
Those who have worked with RCU for some time will naturally think in terms of the long-standing call_rcu() API rather than the much newer call_rcu_hurry() API. But it is call_rcu_hurry() that you should normally pass to synchronize_rcu_mult(). This commit therefore updates the header comment to point this out. Signed-off-by: Paul E. McKenney <[email protected]> Reviewed-by: Joel Fernandes (Google) <[email protected]>
1 parent 06c2afb commit 6716f4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/rcupdate_wait.h

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ do { \
4242
* call_srcu() function, with this wrapper supplying the pointer to the
4343
* corresponding srcu_struct.
4444
*
45+
* Note that call_rcu_hurry() should be used instead of call_rcu()
46+
* because in kernels built with CONFIG_RCU_LAZY=y the delay between the
47+
* invocation of call_rcu() and that of the corresponding RCU callback
48+
* can be multiple seconds.
49+
*
4550
* The first argument tells Tiny RCU's _wait_rcu_gp() not to
4651
* bother waiting for RCU. The reason for this is because anywhere
4752
* synchronize_rcu_mult() can be called is automatically already a full

0 commit comments

Comments
 (0)