Skip to contentSkip to conversation

srcu: Fix comments for srcu_dereference_check()/srcu_dereference()

PATCH New Zqiang 1 participant 1 message Nov 26

Subsystems (2)
lore
Share & tools
lore

Zqiang

author reviewer
#0 lore raw

PATCH 1/1 srcu: Fix comments for srcu_dereference_check()/srcu_dereference()

These are SRCU-specific primitives and their checks are against SRCU read-side critical sections. this commit therefore fix comments "outside of an RCU read-side critical section" to "outside of an SRCU read-side critical section".

---
 include/linux/srcu.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/srcu.h +2 -2
index 380b5964fcb4..87e5535556c6 100644
@@ -294,7 +294,7 @@ static inline void __srcu_read_lock_must_hold(const struct srcu_struct *ssp) __m
  *	really are in an SRCU read-side critical section.
  * @c: condition to check for update-side use
  *
- * If PROVE_RCU is enabled, invoking this outside of an RCU read-side
+ * If PROVE_RCU is enabled, invoking this outside of an SRCU read-side
  * critical section will result in an RCU-lockdep splat, unless @c evaluates
  * to 1.  The @c argument will normally be a logical expression containing
  * lockdep_is_held() calls.
@@ -317,7 +317,7 @@ static inline void __srcu_read_lock_must_hold(const struct srcu_struct *ssp) __m
  *	really are in an SRCU read-side critical section.
  *
  * Makes rcu_dereference_check() do the dirty work.  If PROVE_RCU
- * is enabled, invoking this outside of an RCU read-side critical
+ * is enabled, invoking this outside of an SRCU read-side critical
  * section will result in an RCU-lockdep splat.
  */
 #define srcu_dereference(p, ssp) srcu_dereference_check((p), (ssp), 0)
Signature · 1 line
2.17.1