From 4051410fef04be34f33794f98d25f6e7f075aac5 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Fri, 8 Mar 2019 18:54:04 +0100 Subject: [PATCH] MEDIUM: proto_tcp: Use the new _HA_ATOMIC_* macros. Use the new _HA_ATOMIC_* macros and add barriers where needed. --- src/proto_tcp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/proto_tcp.c b/src/proto_tcp.c index f1a0e4cf6..6a5fdefdb 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -1337,16 +1337,16 @@ static enum act_return tcp_exec_action_silent_drop(struct act_rule *rule, struct channel_abort(&strm->res); strm->req.analysers = 0; strm->res.analysers = 0; - HA_ATOMIC_ADD(&strm->be->be_counters.denied_req, 1); + _HA_ATOMIC_ADD(&strm->be->be_counters.denied_req, 1); if (!(strm->flags & SF_ERR_MASK)) strm->flags |= SF_ERR_PRXCOND; if (!(strm->flags & SF_FINST_MASK)) strm->flags |= SF_FINST_R; } - HA_ATOMIC_ADD(&sess->fe->fe_counters.denied_req, 1); + _HA_ATOMIC_ADD(&sess->fe->fe_counters.denied_req, 1); if (sess->listener->counters) - HA_ATOMIC_ADD(&sess->listener->counters->denied_req, 1); + _HA_ATOMIC_ADD(&sess->listener->counters->denied_req, 1); return ACT_RET_STOP; }