]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ring: make the ring reader use only absolute offsets
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Feb 2023 08:53:38 +0000 (09:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 17:34:19 +0000 (17:34 +0000)
commit0f611987dadb2e60af38ca7bdd59f6271ca11e34
tree9557984f9d8bdf3a8cac266ec2592e5d7f1c4d19
parent63242a59c486801499449e07ec6a57885661ae75
MINOR: ring: make the ring reader use only absolute offsets

The goal is to remove references to the buffer's head and tail in the
fast path so that we can release the lock during some reads. This means
no more comparisons with b_data() nor operations relative to b_head()
will be possible anymore. As a first step we need to have an absolute
offset in the buffer, and to use b_getblk_ofs() in the applet callbacks
to retrieve the data based on this.
src/applet.c
src/log.c
src/ring.c