fs: dlm: remove dlm_node_addrs lookup list
authorAlexander Aring <aahringo@redhat.com>
Thu, 17 Nov 2022 22:11:53 +0000 (17:11 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 21 Nov 2022 15:45:49 +0000 (09:45 -0600)
commit6f0b0b5d7ae70423c94915989c45b29e87c61ad7
tree7ddf29ec0d04aa36ba05f73cfcf9064766a71b5b
parentc51c9cd8addcfbdc097dbefd59f022402183644b
fs: dlm: remove dlm_node_addrs lookup list

This patch merges the dlm_node_addrs lookup list to the connection
structure. It is a per node mapping to some configuration setup by
configfs. We don't need two lookup structures. The connection hash has
now a lifetime like the dlm_node_addrs entries. Means we add only new
entries when configure cluster and not while new connections are coming
in, remove connection when a node got fenced and cleanup all connection
when the dlm exits. It should work the same and even will show more
issues because we don't try to somehow keep those two data structures in
sync with the current cluster configuration.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c