MEDIUM: various: Use __ha_barrier_atomic* when relevant.
When protecting data modified by atomic operations, use __ha_barrier_atomic*
to avoid unneeded barriers on x86.
diff --git a/include/common/mini-clist.h b/include/common/mini-clist.h
index 62a62d7..074176a 100644
--- a/include/common/mini-clist.h
+++ b/include/common/mini-clist.h
@@ -192,7 +192,7 @@
n = HA_ATOMIC_XCHG(&(lh)->n, LLIST_BUSY); \
if (n == LLIST_BUSY) \
continue; \
- __ha_barrier_store(); \
+ __ha_barrier_atomic_store(); \
p = HA_ATOMIC_XCHG(&n->p, LLIST_BUSY); \
if (p == LLIST_BUSY) { \
(lh)->n = n; \
diff --git a/include/common/xref.h b/include/common/xref.h
index a6291f5..48bc07a 100644
--- a/include/common/xref.h
+++ b/include/common/xref.h
@@ -32,7 +32,7 @@
/* Get the local pointer to the peer. */
local = HA_ATOMIC_XCHG(&xref->peer, XREF_BUSY);
- __ha_barrier_store();
+ __ha_barrier_atomic_store();
/* If the local pointer is NULL, the peer no longer exists. */
if (local == NULL) {