mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04: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
1 changed files with 0 additions and 2 deletions
|
|
@ -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…
Reference in a new issue