Re: [PATCH 0/2] change some odd-looking atomic uses

2024-07-01 Thread Paolo Bonzini
On Mon, Jul 1, 2024 at 1:52 PM Wolfgang Bumiller wrote: > > I spotted the weird-looking pattern of: > atomic_set(atomic_load() N) > in a few palces and one variable in the graph-lock code which was used with > atomics except for a single case, which also seemed suspicious. > > I'm not sure

[PATCH 0/2] change some odd-looking atomic uses

2024-07-01 Thread Wolfgang Bumiller
I spotted the weird-looking pattern of: atomic_set(atomic_load() N) in a few palces and one variable in the graph-lock code which was used with atomics except for a single case, which also seemed suspicious. I'm not sure if there are any known compiler-optimizations or ordering semantics