* [PATCH] srcu: Fix comments for srcu_dereference_check()/srcu_dereference()
@ 2026-11-26 8:42 Zqiang
2026-11-27 6:14 ` Paul E. McKenney
0 siblings, 1 reply; 2+ messages in thread
From: Zqiang @ 2026-11-26 8:42 UTC (permalink / raw)
To: paulmck, frederic, neeraj.upadhyay, joelagnelf, urezki, boqun
Cc: qiang.zhang, rcu, linux-kernel
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".
Signed-off-by: Zqiang <qiang.zhang@linux.dev>
---
include/linux/srcu.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/srcu.h b/include/linux/srcu.h
index 380b5964fcb4..87e5535556c6 100644
--- a/include/linux/srcu.h
+++ b/include/linux/srcu.h
@@ -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)
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] srcu: Fix comments for srcu_dereference_check()/srcu_dereference()
2026-11-26 8:42 [PATCH] srcu: Fix comments for srcu_dereference_check()/srcu_dereference() Zqiang
@ 2026-11-27 6:14 ` Paul E. McKenney
0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2026-11-27 6:14 UTC (permalink / raw)
To: Zqiang
Cc: frederic, neeraj.upadhyay, joelagnelf, urezki, boqun, rcu,
linux-kernel
On Thu, Nov 26, 2026 at 04:42:41PM +0800, Zqiang wrote:
> 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".
>
> Signed-off-by: Zqiang <qiang.zhang@linux.dev>
Good eyes!
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
> ---
> include/linux/srcu.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/linux/srcu.h b/include/linux/srcu.h
> index 380b5964fcb4..87e5535556c6 100644
> --- a/include/linux/srcu.h
> +++ b/include/linux/srcu.h
> @@ -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)
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-27 6:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 8:42 [PATCH] srcu: Fix comments for srcu_dereference_check()/srcu_dereference() Zqiang
2026-11-27 6:14 ` Paul E. McKenney
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.