]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: poller: program the update in fd_update_events() for a migrated FD
authorWilly Tarreau <w@1wt.eu>
Sat, 9 Jul 2022 16:55:37 +0000 (18:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 17:43:10 +0000 (19:43 +0200)
commitb1093c6ba21ae3d41946f3a7bb4886b8b90e7c27
treeec8018b076e4ccc3b1a3acf329ab5281cbe79f9d
parent1b927eb3c35dfdbe73b4852f18e025b8e10e3716
MEDIUM: poller: program the update in fd_update_events() for a migrated FD

When an FD is migrated, all pollers program an update. That's useless
code duplication, and when thread groups will be supported, this will
require an extra round of locking just to verify the update_mask on
return. Let's just program the update direction from fd_update_events()
as it already does for closed FDs, this becomes more logical.
src/ev_epoll.c
src/ev_evports.c
src/ev_kqueue.c
src/ev_poll.c
src/fd.c