]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: fd: always wake up one thread when enabling a foreing FD
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2020 10:18:53 +0000 (12:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 09:27:29 +0000 (11:27 +0200)
commitf015887444bb866397e1963457306027cac0e537
tree80fa3920c8b3b7b7e4cf2518a88f852f162db3a7
parent2ea15a0804fec1f570b9923f13a23624422a9b26
MEDIUM: fd: always wake up one thread when enabling a foreing FD

Since 2.2 it's safe to enable/disable another thread's FD but the fd_wake
calls will not immediately be considered because nothing wakes the other
threads up. This will have an impact on listeners when deciding to resume
them after they were paused, so at minima we want to wake up one of their
threads, just like the scheduler does on task_kill(). This is what this
patch does.
src/fd.c