commit | c23b33764ea88587193472283c3e2d7a88448392 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <cognet@ci0.org> | Thu Mar 25 01:38:54 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Mar 25 07:34:35 2021 +0100 |
tree | 2ae8b9b587bd939e56750773d61c5631ae2eb7bc | |
parent | 2d4232901c59b4065003aca7b436185fe7424480 [diff] |
BUG/MEDIUM: fd: Take the fd_mig_lock when closing if no DWCAS is available. In fd_delete(), if we're running with no double-width cas, take the fd_mig_lock before setting thread_mask to 0 to make sure that another thread calling fd_set_running() won't miss the new value of thread_mask and set its bit in running_mask after we checked it. This should be backported to 2.2 as part of the series fixing fd_delete().