diff options
author | 2025-01-08 19:35:40 -0800 | |
---|---|---|
committer | 2025-02-04 21:50:06 -0800 | |
commit | 366ba3f7f9ce4924d544b9d2c6514a7b19270953 (patch) | |
tree | d5cdd2b9876cfdd9b620a3c2186dc50de0876676 | |
parent | rcu: Document self-propagating callbacks (diff) | |
download | wireguard-linux-366ba3f7f9ce4924d544b9d2c6514a7b19270953.tar.xz wireguard-linux-366ba3f7f9ce4924d544b9d2c6514a7b19270953.zip |
srcu: Point call_srcu() to call_rcu() for detailed memory ordering
This commit causes the call_srcu() kernel-doc header to reference that
of call_rcu() for detailed memory-ordering guarantees.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
-rw-r--r-- | kernel/rcu/srcutree.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c index b83c74c4dcc0..f87a9fb6d6bb 100644 --- a/kernel/rcu/srcutree.c +++ b/kernel/rcu/srcutree.c @@ -1398,8 +1398,12 @@ static void __call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp, * read-side critical sections are delimited by srcu_read_lock() and * srcu_read_unlock(), and may be nested. * - * The callback will be invoked from process context, but must nevertheless - * be fast and must not block. + * The callback will be invoked from process context, but with bh + * disabled. The callback function must therefore be fast and must + * not block. + * + * See the description of call_rcu() for more detailed information on + * memory ordering guarantees. */ void call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp, rcu_callback_t func) |