haproxy/include/common
Willy Tarreau 21072b9480 CLEANUP: pools: use the regular lock for the flush operation on lockless pools
Commit 04f5fe87d3 introduced an rwlock in the pools to deal with the risk
that pool_flush() dereferences an area being freed, and commit 899fb8abdc
turned it into a spinlock. The pools already contain a spinlock in case of
locked pools, so let's use the same and simplify the code by removing ifdefs.

At this point I'm really suspecting that if pool_flush() would instead
rely on __pool_get_first() to pick entries from the pool, the concurrency
problem could never happen since only one user would get a given entry at
once, thus it could not be freed by another user. It's not certain this
would be faster however because of the number of atomic ops to retrieve
one entry compared to a locked batch.
2020-05-29 17:28:04 +02:00
..
base64.h
buf.h MINOR: buf: Add function to insert a string at an absolute offset in a buffer 2020-03-06 14:12:59 +01:00
buffer.h MEDIUM: buffer: remove the buffer_wq lock 2020-02-26 10:39:36 +01:00
cfgparse.h Revert "MEDIUM: sink: add global statement to create a new ring (sink buffer)" 2020-05-20 12:06:16 +02:00
chunk.h MINOR: chunk: implement chunk_strncpy() to copy partial strings 2020-02-14 19:02:06 +01:00
compat.h MINOR: debug: use our own backtrace function on clang+x86_64 2020-03-04 12:04:07 +01:00
compiler.h MINOR: debug: add a new DISGUISE() macro to pass a value as identity 2020-03-14 10:52:46 +01:00
config.h CLEANUP: remove THREAD_LOCAL from config.h 2020-05-09 09:08:09 +02:00
debug.h MINOR: debug: consume the write() result in BUG_ON() to silence a warning 2020-03-14 10:58:35 +01:00
defaults.h CLENAUP: config: move CONFIG_HAP_LOCKLESS_POOLS out of config.h 2020-05-09 09:02:35 +02:00
errors.h
fcgi.h
h1.h CLEANUP: assorted typo fixes in the code and comments 2020-03-14 09:42:07 +01:00
h2.h MINOR: h2: add a function to report H2 error codes as strings 2019-11-25 11:34:26 +01:00
hash.h BUG/MAJOR: hashes: fix the signedness of the hash inputs 2020-01-16 08:23:42 +01:00
hathreads.h CLEANUP: remove THREAD_LOCAL from config.h 2020-05-09 09:08:09 +02:00
hpack-dec.h
hpack-enc.h
hpack-huff.h
hpack-tbl.h BUILD: hpack: make sure the hpack table can still be built standalone 2020-05-22 12:13:43 +02:00
http-hdr.h
http.h CLEANUP: http: Remove unused HTTP message templates 2020-05-28 15:07:20 +02:00
htx.h MINOR: htx: Add a function to copy a buffer in an HTX message 2020-05-20 18:27:14 +02:00
initcall.h
ist.h MINOR: ist: add istissame() function 2020-05-05 15:28:59 +02:00
istbuf.h MINOR: istbuf: add ist2buf() function 2020-05-05 15:28:59 +02:00
memory.h CLEANUP: pools: use the regular lock for the flush operation on lockless pools 2020-05-29 17:28:04 +02:00
mini-clist.h MINOR: mini-clist: Add functions to iterate backward on a list 2020-04-27 09:39:37 +02:00
namespace.h
net_helper.h CLEANUP: net_helper: Do not negate the result of unlikely 2020-02-25 07:30:49 +01:00
openssl-compat.h BUG/MINOR: sample/ssl: Fix digest converter for openssl < 1.1.0 2020-05-12 16:30:41 +02:00
regex.h CLEANUP: remove THREAD_LOCAL from config.h 2020-05-09 09:08:09 +02:00
standard.h MINOR: standard: Add my_memspn and my_memcspn 2020-04-27 09:39:38 +02:00
template.h
ticks.h
time.h BUILD: remove obsolete support for -mregparm / USE_REGPARM 2020-02-25 07:41:47 +01:00
tools.h BUG/MINOR: ssl: ssl_sock_load_pem_into_ckch is not consistent 2020-01-22 15:55:55 +01:00
uri_auth.h
version.h MINOR: version: this is development again, update the status 2019-11-25 20:38:32 +01:00
xref.h CLEANUP: assorted typo fixes in the code and comments 2020-03-14 09:42:07 +01:00