[PATCH v3] Avoid memory barrier in read_seqcount() through load acquire

Christoph Lameter (Ampere) cl at gentwo.org
Fri Oct 25 12:30:32 PDT 2024


On Fri, 25 Oct 2024, Peter Zijlstra wrote:

> > atomic_inc_release(&seqcount)
>
> It would not be, making the increment itself atomic would make the whole
> thing far more expensive.

True. I was too much taken by a cool hw feature on ARM.




More information about the linux-arm-kernel mailing list