From: Willy Tarreau Date: Sat, 10 Apr 2021 15:33:15 +0000 (+0200) Subject: MINOR: server: move idle_conn_task to read_mostly X-Git-Tag: v2.4-dev17~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14015b888001137a504a52a900b6267eb8183aa6;p=thirdparty%2Fhaproxy.git MINOR: server: move idle_conn_task to read_mostly This pointer is used when adding connections to the idle list and is never changed, let's move it to the read_mostly section. --- diff --git a/src/server.c b/src/server.c index 9043a77c2d..3f05904fdd 100644 --- a/src/server.c +++ b/src/server.c @@ -66,7 +66,7 @@ static struct srv_kw_list srv_keywords = { __decl_thread(HA_SPINLOCK_T idle_conn_srv_lock); struct eb_root idle_conn_srv = EB_ROOT; -struct task *idle_conn_task = NULL; +struct task *idle_conn_task __read_mostly = NULL; struct list servers_list = LIST_HEAD_INIT(servers_list); /* The server names dictionary */