]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: fd/threads: properly dereference fdcache as volatile
authorWilly Tarreau <w@1wt.eu>
Mon, 5 Feb 2018 18:43:30 +0000 (19:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 5 Feb 2018 18:45:31 +0000 (19:45 +0100)
commitabeaff2d543fded7ffc14dd908d673c59d725155
tree27fdbeff3d6fb5513195639d86de574ca10f9b06
parent4cc67a2782784db21a872668558647a722626c06
BUG/MINOR: fd/threads: properly dereference fdcache as volatile

In fd_rm_from_fd_list(), we have loops waiting for another change to
complete, in case we don't have support for a double CAS. But these
ones fail to place a compiler barrier or to dereference the fdcache
as a volatile, resulting in an endless loop on the first collision,
which is visible when run on MIPS32.

No backport needed.
src/fd.c