From 237985b22800113ac35983626b0a4b22aadee6af Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Wed, 13 Mar 2019 18:52:21 +0100 Subject: [PATCH] MEDIUM: connections: Use _HA_ATOMIC_* Use _HA_ATOMIC_ instead of HA_ATOMIC_ because we know we don't need barriers --- include/proto/connection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/proto/connection.h b/include/proto/connection.h index 1326a15f97..dba8dea1e1 100644 --- a/include/proto/connection.h +++ b/include/proto/connection.h @@ -693,7 +693,7 @@ static inline void conn_free(struct connection *conn) */ if (conn->idle_time > 0) { 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]--; }