Re: [PATCH hazptr v2 2/4] ptreq.h: Introduce ptr_eq() to preserve address dependency
From: Mathieu Desnoyers
Date: Fri Oct 09 2026 - 15:23:40 EST
On 2026-10-09 15:03, Boqun Feng wrote:
On Fri, Oct 09, 2026 at 02:21:33PM -0400, Mathieu Desnoyers wrote:[...]
[...]
An architecture specific implementation of the pointer comparison
can be implemented by each architecture as asm/ptreq.h. The x86
implementation is provided initially. If no implementation header is
present for the architecture, an arch-agnostic fallback based on
OPTIMIZER_HIDE_VAR is included from asm-generic.
I took rwonce.h (implementing READ_ONCE()/WRITE_ONCE()) as an
I prefer the name ptr_eq.h over ptreq.h :)
With that name fix or there is a strong reason of ptreq.h:
Reviewed-by: Boqun Feng <boqun@xxxxxxxxxx>
inspiration for the file name. I'm open to change it to whatever
people think best. I have no strong preference for either ptreq.h
or ptr_eq.h. I'll let people chime in before respinning an updated
series if a file name change is needed.
Thanks!
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com