MINOR: server: move idle_conn_task to read_mostly
authorWilly Tarreau <w@1wt.eu>
Sat, 10 Apr 2021 15:33:15 +0000 (17:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 10 Apr 2021 17:27:41 +0000 (19:27 +0200)
This pointer is used when adding connections to the idle list and is
never changed, let's move it to the read_mostly section.

src/server.c

index 9043a77..3f05904 100644 (file)
@@ -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 */