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.
This commit is contained in:
Willy Tarreau 2021-04-10 17:33:15 +02:00
parent 56c3b8b4e8
commit 14015b8880

View File

@ -66,7 +66,7 @@ static struct srv_kw_list srv_keywords = {
__decl_thread(HA_SPINLOCK_T idle_conn_srv_lock); __decl_thread(HA_SPINLOCK_T idle_conn_srv_lock);
struct eb_root idle_conn_srv = EB_ROOT; 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); struct list servers_list = LIST_HEAD_INIT(servers_list);
/* The server names dictionary */ /* The server names dictionary */