From 6cf13119e2adeeed2520c66d2fc0cea6f6f23acb Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 24 Mar 2021 11:34:09 +0100 Subject: [PATCH] CLEANUP: fd: remove unused fd_set_running_excl() This one is no longer used and was the origin of the previously mentioned deadlock. --- include/haproxy/fd.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/haproxy/fd.h b/include/haproxy/fd.h index 39491c934..7e0863cde 100644 --- a/include/haproxy/fd.h +++ b/include/haproxy/fd.h @@ -341,13 +341,6 @@ static inline int fd_set_running(int fd) #endif } -static inline void fd_set_running_excl(int fd) -{ - unsigned long old_mask = 0; - while (!_HA_ATOMIC_CAS(&fdtab[fd].running_mask, &old_mask, tid_bit)) - old_mask = 0; -} - /* remove tid_bit from the fd's running mask and returns the bits that remain * after the atomic operation. */