Re: [PATCH v1 2/2] Documentation: RCU: Refer to ptr_eq()

2024-09-29 Thread Paul E. McKenney
On Sun, Sep 29, 2024 at 12:09:54PM -0400, Mathieu Desnoyers wrote: > On 2024-09-29 17:51, Paul E. McKenney wrote: > > On Sun, Sep 29, 2024 at 07:16:08AM -0400, Mathieu Desnoyers wrote: > > > Refer to ptr_eq() in the rcu_dereference() documentation. > > > > > > ptr_eq() is a mechanism that preserve

Re: [PATCH v1 2/2] Documentation: RCU: Refer to ptr_eq()

2024-09-29 Thread Mathieu Desnoyers
On 2024-09-29 17:51, Paul E. McKenney wrote: On Sun, Sep 29, 2024 at 07:16:08AM -0400, Mathieu Desnoyers wrote: Refer to ptr_eq() in the rcu_dereference() documentation. ptr_eq() is a mechanism that preserves address dependencies when comparing pointers, and should be favored when comparing a p

Re: [PATCH v1 2/2] Documentation: RCU: Refer to ptr_eq()

2024-09-29 Thread Paul E. McKenney
On Sun, Sep 29, 2024 at 07:16:08AM -0400, Mathieu Desnoyers wrote: > Refer to ptr_eq() in the rcu_dereference() documentation. > > ptr_eq() is a mechanism that preserves address dependencies when > comparing pointers, and should be favored when comparing a pointer > obtained from rcu_dereference()

[PATCH v1 2/2] Documentation: RCU: Refer to ptr_eq()

2024-09-29 Thread Mathieu Desnoyers
Refer to ptr_eq() in the rcu_dereference() documentation. ptr_eq() is a mechanism that preserves address dependencies when comparing pointers, and should be favored when comparing a pointer obtained from rcu_dereference() against another pointer. Signed-off-by: Mathieu Desnoyers Cc: Greg Kroah-H