]> git.ipfire.org Git - thirdparty/bind9.git/commit
Convert sock->active to non-atomic variable, cleanup rchildren
authorOndřej Surý <ondrej@isc.org>
Tue, 28 Mar 2023 15:03:56 +0000 (17:03 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 30 Mar 2023 14:10:08 +0000 (16:10 +0200)
commit45365adb324f8c602dfd28e53d4c6db4a7432a37
tree9fb206534d77bab7be7a18f66fc7489f9b93c524
parente1a4572fd68f0b039594fbf8cfbdc957df07e198
Convert sock->active to non-atomic variable, cleanup rchildren

The last atomic_bool variable sock->active was converted to non-atomic
bool by properly handling the listening socket case where we were
checking parent socket instead of children sockets.

This is no longer necessary as we properly set the .active to false on
the children sockets.

Additionally, cleanup the .rchildren - the atomic variable was used for
mutex+condition to block until all children were listening, but that's
now being handled by a barrier.

Finally, just remove dead .self and .active_child_connections members of
the netmgr socket.
lib/isc/netmgr/http.c
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/streamdns.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tlsstream.c
lib/isc/netmgr/udp.c