Skip to content

Commit 768b1f8

Browse files
paulmckrcuFrederic Weisbecker
authored andcommitted
srcu: Improve srcu_read_lock_lite() kernel-doc comment
Where RCU is watching is where it is OK to invoke rcu_read_lock(). Reported-by: Andrii Nakryiko <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Reviewed-by: Neeraj Upadhyay <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
1 parent 6a2c025 commit 768b1f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/srcu.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ static inline int srcu_read_lock(struct srcu_struct *ssp) __acquires(ssp)
270270
* synchronize_rcu_expedited(), IPIs and all.
271271
*
272272
* Note that srcu_read_lock_lite() can be invoked only from those contexts
273-
* where RCU is watching. Otherwise, lockdep will complain.
273+
* where RCU is watching, that is, from contexts where it would be legal
274+
* to invoke rcu_read_lock(). Otherwise, lockdep will complain.
274275
*/
275276
static inline int srcu_read_lock_lite(struct srcu_struct *ssp) __acquires(ssp)
276277
{

0 commit comments

Comments
 (0)