linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Introduce ptr_eq() to preserve address dependency
@ 2024-09-29 11:16 Mathieu Desnoyers
  2024-09-29 11:16 ` [PATCH v1 1/2] compiler.h: " Mathieu Desnoyers
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mathieu Desnoyers @ 2024-09-29 11:16 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: linux-kernel, Mathieu Desnoyers, Greg Kroah-Hartman,
	Sebastian Andrzej Siewior, Paul E. McKenney, Will Deacon,
	Peter Zijlstra, Boqun Feng, Alan Stern, John Stultz,
	Neeraj Upadhyay, Frederic Weisbecker, Joel Fernandes,
	Josh Triplett, Uladzislau Rezki, Steven Rostedt, Lai Jiangshan,
	Zqiang, Ingo Molnar, Waiman Long, Mark Rutland, Thomas Gleixner,
	Vlastimil Babka, maged.michael, Mateusz Guzik, Gary Guo,
	Jonas Oberhauser, rcu, linux-mm, lkmm, Nikita Popov, llvm

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 <gregkh@linuxfoundation.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: John Stultz <jstultz@google.com>
Cc: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Uladzislau Rezki <urezki@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Cc: Zqiang <qiang.zhang1211@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Waiman Long <longman@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: maged.michael@gmail.com
Cc: Mateusz Guzik <mjguzik@gmail.com>
Cc: Gary Guo <gary@garyguo.net>
Cc: Jonas Oberhauser <jonas.oberhauser@huaweicloud.com>
Cc: rcu@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: lkmm@lists.linux.dev
Cc: Nikita Popov <github@npopov.com>
Cc: llvm@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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-09-29 17:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-29 11:16 [PATCH v1 0/2] Introduce ptr_eq() to preserve address dependency Mathieu Desnoyers
2024-09-29 11:16 ` [PATCH v1 1/2] compiler.h: " Mathieu Desnoyers
2024-09-29 11:16 ` [PATCH v1 2/2] Documentation: RCU: Refer to ptr_eq() Mathieu Desnoyers
2024-09-29 15:51   ` Paul E. McKenney
2024-09-29 16:09     ` Mathieu Desnoyers
2024-09-29 17:07       ` Paul E. McKenney
2024-09-29 15:50 ` [PATCH v1 0/2] Introduce ptr_eq() to preserve address dependency Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox