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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Paul E. McKenney and committed by
Boqun Feng
366ba3f7 21ef2498

+6 -2
+6 -2
kernel/rcu/srcutree.c
··· 1398 1398 * read-side critical sections are delimited by srcu_read_lock() and 1399 1399 * srcu_read_unlock(), and may be nested. 1400 1400 * 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. 1403 1407 */ 1404 1408 void call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp, 1405 1409 rcu_callback_t func)