mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
MINOR: queues: use __ha_cpu_relax() on failed CAS.
Make sure we call __ha_cpu_relax() if we fail a CAS, to help with contention.
This commit is contained in:
parent
f17b0a994b
commit
b74ec1efc2
@ -453,7 +453,7 @@ int process_srv_queue(struct server *s)
|
||||
else
|
||||
new_served++;
|
||||
}
|
||||
} while (!_HA_ATOMIC_CAS(&s->per_tgrp[tgid - 1].last_other_tgrp_served, &old_served, new_served));
|
||||
} while (!_HA_ATOMIC_CAS(&s->per_tgrp[tgid - 1].last_other_tgrp_served, &old_served, new_served) && __ha_cpu_relax());
|
||||
cur_tgrp = new_served;
|
||||
to_dequeue = 1;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user