]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: connections: Use _HA_ATOMIC_*
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 13 Mar 2019 17:52:21 +0000 (18:52 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 14 Mar 2019 14:55:15 +0000 (15:55 +0100)
Use _HA_ATOMIC_ instead of HA_ATOMIC_ because we know we don't need barriers

include/proto/connection.h

index 1326a15f97eff9559d2bc6585c3b914b95a2986e..dba8dea1e1ce168e5ef55ccbe374c5b62f9f7582 100644 (file)
@@ -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]--;
        }