From: Olivier Houchard Date: Wed, 13 Mar 2019 17:52:21 +0000 (+0100) Subject: MEDIUM: connections: Use _HA_ATOMIC_* X-Git-Tag: v2.0-dev2~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=237985b22800113ac35983626b0a4b22aadee6af;p=thirdparty%2Fhaproxy.git MEDIUM: connections: Use _HA_ATOMIC_* Use _HA_ATOMIC_ instead of HA_ATOMIC_ because we know we don't need barriers --- 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]--; }