]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: fd/threads: Make the fdcache mostly lockless.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 24 Jan 2018 17:17:56 +0000 (18:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 5 Feb 2018 15:02:22 +0000 (16:02 +0100)
commit4815c8cbfe7817939bcac7adc18fd9f86993e4fc
tree9619f9ff9c95b40af28f2f2a36fc0c97aeaac725
parentcf975d46bca2515056a4f55e55fedbbc7b4eda59
MAJOR: fd/threads: Make the fdcache mostly lockless.

Create a local, per-thread, fdcache, for file descriptors that only belongs
to one thread, and make the global fd cache mostly lockless, as we can get
a lot of contention on the fd cache lock.
include/common/hathreads.h
include/proto/fd.h
include/types/fd.h
src/cli.c
src/fd.c
src/stream.c