mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-05 04:56:10 +02:00
MEDIUM: list: Remove useless barriers.
Don't bother forcing a barrier after using HA_ATOMIC_XCHG if we're about to check the returned value anyway.
This commit is contained in:
parent
897e2c58e6
commit
17fbb4eb3f
@ -192,7 +192,6 @@ struct cond_wordlist {
|
||||
n = HA_ATOMIC_XCHG(&(lh)->n, LLIST_BUSY); \
|
||||
if (n == LLIST_BUSY) \
|
||||
continue; \
|
||||
__ha_barrier_atomic_store(); \
|
||||
p = HA_ATOMIC_XCHG(&n->p, LLIST_BUSY); \
|
||||
if (p == LLIST_BUSY) { \
|
||||
(lh)->n = n; \
|
||||
@ -218,7 +217,6 @@ struct cond_wordlist {
|
||||
p = HA_ATOMIC_XCHG(&(lh)->p, LLIST_BUSY); \
|
||||
if (p == LLIST_BUSY) \
|
||||
continue; \
|
||||
__ha_barrier_store(); \
|
||||
n = HA_ATOMIC_XCHG(&p->n, LLIST_BUSY); \
|
||||
if (n == LLIST_BUSY) { \
|
||||
(lh)->p = p; \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user