Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <paulmck@kernel.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>

+5
+5
include/linux/rcupdate_wait.h
··· 42 42 * call_srcu() function, with this wrapper supplying the pointer to the 43 43 * corresponding srcu_struct. 44 44 * 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 + * 45 50 * The first argument tells Tiny RCU's _wait_rcu_gp() not to 46 51 * bother waiting for RCU. The reason for this is because anywhere 47 52 * synchronize_rcu_mult() can be called is automatically already a full