Re: [PATCH v7 08/14] KVM: Rename mmu_notifier_*

From: Peter Zijlstra
Date: Wed May 24 2023 - 16:30:51 EST


On Wed, May 24, 2023 at 11:42:15AM +0530, Kautuk Consul wrote:

> My comment was based on the assumption that "all atomic operations are
> implicit memory barriers". If that assumption is true then we won't need

It is not -- also see Documentation/atomic_t.txt.

Specifically atomic_read() doesn't imply any ordering on any
architecture including the strongly ordered TSO-archs (like x86).