mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
MEDIUM: connections: Use _HA_ATOMIC_*
Use _HA_ATOMIC_ instead of HA_ATOMIC_ because we know we don't need barriers
This commit is contained in:
parent
9f8d821a55
commit
237985b228
@ -693,7 +693,7 @@ static inline void conn_free(struct connection *conn)
|
|||||||
*/
|
*/
|
||||||
if (conn->idle_time > 0) {
|
if (conn->idle_time > 0) {
|
||||||
struct server *srv = __objt_server(conn->target);
|
struct server *srv = __objt_server(conn->target);
|
||||||
HA_ATOMIC_SUB(&srv->curr_idle_conns, 1);
|
_HA_ATOMIC_SUB(&srv->curr_idle_conns, 1);
|
||||||
srv->curr_idle_thr[tid]--;
|
srv->curr_idle_thr[tid]--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user