[PATCH v4 06/13] riscv: Improve zacas fully-ordered cmpxchg()

Andrea Parri parri.andrea at gmail.com
Wed Jul 31 03:33:54 PDT 2024


> >   amocas.X.aqrl   a5,a4,(s1)
> 
> We won't get release semantics if the exchange fails. Does that matter?

Conditional (atomic) RMW operations are unordered/relaxed on failure, so
we should be okay here; cf. e.g. Documentation/atomic_t.txt.

  Andrea



More information about the linux-riscv mailing list