diff options
author | Alexander Aring <aahringo@redhat.com> | 2023-08-01 20:09:49 +0200 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2023-08-10 17:33:03 +0200 |
commit | 63e711b081609748d631fc3a08b14ba01c8e4f16 (patch) | |
tree | 0f0a9f7dc619509bd2e5347d826562a2b20ad9f6 /fs/dlm/midcomms.h | |
parent | fs: dlm: constify receive buffer (diff) | |
download | linux-63e711b081609748d631fc3a08b14ba01c8e4f16.tar.xz linux-63e711b081609748d631fc3a08b14ba01c8e4f16.zip |
fs: dlm: create midcomms nodes when configure
This patch puts the life of a midcomms node the same as a lowcomms
connection. The lowcomms connection lifetime was changed by commit
6f0b0b5d7ae7 ("fs: dlm: remove dlm_node_addrs lookup list"). In the
future the midcomms node instances can be merged with lowcomms
connection structure as the lifetime is the same and states can be
controlled over values or flags.
Before midcomms nodes were generated during version detection. This is
not necessary anymore when the nodes are created when the cluster
manager configures DLM via configfs. When a midcomms node is created over
configfs it well set DLM_VERSION_NOT_SET as version. This indicates that
the version of the midcomms node is still unknown and need to be probed
via certain rcom messages.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/midcomms.h')
-rw-r--r-- | fs/dlm/midcomms.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/midcomms.h b/fs/dlm/midcomms.h index 9f8c9605013d..e7246fb3ef57 100644 --- a/fs/dlm/midcomms.h +++ b/fs/dlm/midcomms.h @@ -20,6 +20,7 @@ struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len, gfp_t allocation, char **ppc); void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh, const void *name, int namelen); +int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr, int len); void dlm_midcomms_version_wait(void); int dlm_midcomms_close(int nodeid); int dlm_midcomms_start(void); |