]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: fd: remove unused fd_set_running_excl()
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Mar 2021 10:34:09 +0000 (11:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Mar 2021 16:17:21 +0000 (17:17 +0100)
This one is no longer used and was the origin of the previously mentioned
deadlock.

include/haproxy/fd.h

index 39491c9349b987a648a99f375f45609a8e83faa7..7e0863cdeb63953670a94e4ed3b0f3d038c5895c 100644 (file)
@@ -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.
  */