mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
MINOR: epoll: move epoll_fd to read_mostly
This one only contains the list of per-thread epoll FDs, and is used a lot during updates. Let's mark it read_mostly to avoid false sharing of FDs placed at the extremities.
This commit is contained in:
parent
a1090a5b61
commit
26d212c744
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
/* private data */
|
||||
static THREAD_LOCAL struct epoll_event *epoll_events = NULL;
|
||||
static int epoll_fd[MAX_THREADS]; // per-thread epoll_fd
|
||||
static int epoll_fd[MAX_THREADS] __read_mostly; // per-thread epoll_fd
|
||||
|
||||
#ifndef EPOLLRDHUP
|
||||
/* EPOLLRDHUP was defined late in libc, and it appeared in kernel 2.6.17 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue