summaryrefslogtreecommitdiffstats
path: root/include/linux/rcupdate_wait.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2023-05-16 03:41:37 -0700
committerPaul E. McKenney <paulmck@kernel.org>2023-07-19 13:19:41 -0700
commit6716f4d39c17febf7aa4fa5f5923da67a8d10e85 (patch)
tree9faa35c8bf56eefa066d76cb2087c29744cb3ed0 /include/linux/rcupdate_wait.h
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff)
downloadlinux-stable-6716f4d39c17febf7aa4fa5f5923da67a8d10e85.tar.gz
linux-stable-6716f4d39c17febf7aa4fa5f5923da67a8d10e85.tar.bz2
linux-stable-6716f4d39c17febf7aa4fa5f5923da67a8d10e85.zip
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>
Diffstat (limited to 'include/linux/rcupdate_wait.h')
-rw-r--r--include/linux/rcupdate_wait.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/rcupdate_wait.h b/include/linux/rcupdate_wait.h
index 699b938358bf..5e0f74f2f8ca 100644
--- a/include/linux/rcupdate_wait.h
+++ b/include/linux/rcupdate_wait.h
@@ -42,6 +42,11 @@ do { \
* call_srcu() function, with this wrapper supplying the pointer to the
* corresponding srcu_struct.
*
+ * Note that call_rcu_hurry() should be used instead of call_rcu()
+ * because in kernels built with CONFIG_RCU_LAZY=y the delay between the
+ * invocation of call_rcu() and that of the corresponding RCU callback
+ * can be multiple seconds.
+ *
* The first argument tells Tiny RCU's _wait_rcu_gp() not to
* bother waiting for RCU. The reason for this is because anywhere
* synchronize_rcu_mult() can be called is automatically already a full