]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DOC/MINOR: list: fixing MT_LIST_LOCK_ELT macro documentation
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 20 Oct 2022 07:42:23 +0000 (09:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Oct 2022 14:26:27 +0000 (16:26 +0200)
commit18c284c1261764bf9de9153bbe1ee4e53c6c836d
tree35047453379cd24d7de45e1cd1c5dd5440c797c2
parentbcaa401646a063a82f5df514e8595a8f50e58a5c
DOC/MINOR: list: fixing MT_LIST_LOCK_ELT macro documentation

MT_LIST_LOCK_ELT macro was documented with an ambiguous
usage restriction, implying that concurrent list deletion
was not supported.

But it seems that either the code has evolved, or the comment is
wrong because the locking behavior implemented here is exactly
the same one used in MT_LIST_DELETE, and no such restriction is
described for MT_LIST_DELETE.

I made some tests to make sure concurrent MT_LIST_DELETE (or deletion
from mt_list_for_each_entry_safe) don't cause unexepected results.

At the present time, this macro is not used, this fix only
targets upcoming developments that might rely on this.

No backport needed.
include/haproxy/list.h