Skip to content

Commit 366ba3f

Browse files
paulmckrcufbq
authored andcommitted
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>
1 parent 21ef249 commit 366ba3f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

kernel/rcu/srcutree.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,8 +1398,12 @@ static void __call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp,
13981398
* read-side critical sections are delimited by srcu_read_lock() and
13991399
* srcu_read_unlock(), and may be nested.
14001400
*
1401-
* The callback will be invoked from process context, but must nevertheless
1402-
* be fast and must not block.
1401+
* The callback will be invoked from process context, but with bh
1402+
* disabled. The callback function must therefore be fast and must
1403+
* not block.
1404+
*
1405+
* See the description of call_rcu() for more detailed information on
1406+
* memory ordering guarantees.
14031407
*/
14041408
void call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp,
14051409
rcu_callback_t func)

0 commit comments

Comments
 (0)