mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-22 18:33:28 -04:00
MINOR: kqueue: move kqueue_fd to read_mostly
This one only contains the list of per-thread kqueue 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
26d212c744
commit
8209c9aa18
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
|
||||
/* private data */
|
||||
static int kqueue_fd[MAX_THREADS]; // per-thread kqueue_fd
|
||||
static int kqueue_fd[MAX_THREADS] __read_mostly; // per-thread kqueue_fd
|
||||
static THREAD_LOCAL struct kevent *kev = NULL;
|
||||
static struct kevent *kev_out = NULL; // Trash buffer for kevent() to write the eventlist in
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue