diff options
author | Alexander Aring <aahringo@redhat.com> | 2021-05-21 21:08:41 +0200 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-05-25 16:22:20 +0200 |
commit | a070a91cf1402b5328d3517d1fccbdeec58d3f2d (patch) | |
tree | 3cc4204a0693629e2074cf344280774863b4a21e /fs/dlm/config.c | |
parent | fs: dlm: public header in out utility (diff) | |
download | linux-a070a91cf1402b5328d3517d1fccbdeec58d3f2d.tar.xz linux-a070a91cf1402b5328d3517d1fccbdeec58d3f2d.zip |
fs: dlm: add more midcomms hooks
This patch prepares hooks to redirect to the midcomms layer which will
be used by the midcomms re-transmit handling.
There exists the new concept of stateless buffers allocation and
commits. This can be used to bypass the midcomms re-transmit handling. It
is used by RCOM_STATUS and RCOM_NAMES messages, because they have their
own ping-like re-transmit handling. As well these two messages will be
used to determine the DLM version per node, because these two messages
are per observation the first messages which are exchanged.
Cluster manager events for node membership are added to add support for
half-closed connections in cases that the peer connection get to
an end of file but DLM still holds membership of the node. In
this time DLM can still trigger new message which we should allow. After
the cluster manager node removal event occurs it safe to close the
connection.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/config.c')
-rw-r--r-- | fs/dlm/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/dlm/config.c b/fs/dlm/config.c index 88d95d96e36c..01ae294743e9 100644 --- a/fs/dlm/config.c +++ b/fs/dlm/config.c @@ -20,6 +20,7 @@ #include <net/sock.h> #include "config.h" +#include "midcomms.h" #include "lowcomms.h" /* @@ -532,7 +533,7 @@ static void drop_comm(struct config_group *g, struct config_item *i) struct dlm_comm *cm = config_item_to_comm(i); if (local_comm == cm) local_comm = NULL; - dlm_lowcomms_close(cm->nodeid); + dlm_midcomms_close(cm->nodeid); while (cm->addr_count--) kfree(cm->addr[cm->addr_count]); config_item_put(i); |