mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02: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
@ -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 New Issue
Block a user