Re: [PATCH v1 0/2] Introduce ptr_eq() to preserve address dependency

2024-09-29 Thread Alan Stern
On Sun, Sep 29, 2024 at 07:16:06AM -0400, Mathieu Desnoyers wrote:
> Introduce ptr_eq() to compare two addresses while preserving the address
> dependencies for later use of the address. It should be used when
> comparing an address returned by rcu_dereference().

Both patches are now much better.  Thank you.

Acked-by: Alan Stern 

Alan Stern



[PATCH v1 0/2] Introduce ptr_eq() to preserve address dependency

2024-09-29 Thread Mathieu Desnoyers
Introduce ptr_eq() to compare two addresses while preserving the address
dependencies for later use of the address. It should be used when
comparing an address returned by rcu_dereference().

Thanks,

Mathieu

Cc: Greg Kroah-Hartman 
Cc: Sebastian Andrzej Siewior 
Cc: "Paul E. McKenney" 
Cc: Will Deacon 
Cc: Peter Zijlstra 
Cc: Boqun Feng 
Cc: Alan Stern 
Cc: John Stultz 
Cc: Neeraj Upadhyay 
Cc: Boqun Feng 
Cc: Frederic Weisbecker 
Cc: Joel Fernandes 
Cc: Josh Triplett 
Cc: Uladzislau Rezki 
Cc: Steven Rostedt 
Cc: Lai Jiangshan 
Cc: Zqiang 
Cc: Ingo Molnar 
Cc: Waiman Long 
Cc: Mark Rutland 
Cc: Thomas Gleixner 
Cc: Vlastimil Babka 
Cc: maged.mich...@gmail.com
Cc: Mateusz Guzik 
Cc: Gary Guo 
Cc: Jonas Oberhauser 
Cc: r...@vger.kernel.org
Cc: linux...@kvack.org
Cc: l...@lists.linux.dev
Cc: Nikita Popov 
Cc: l...@lists.linux.dev

Mathieu Desnoyers (2):
  compiler.h: Introduce ptr_eq() to preserve address dependency
  Documentation: RCU: Refer to ptr_eq()

 Documentation/RCU/rcu_dereference.rst | 32 +++---
 include/linux/compiler.h  | 63 +++
 2 files changed, 90 insertions(+), 5 deletions(-)

-- 
2.39.2