Skip to content

Commit 63e711b

Browse files
Alexander Aringteigland
authored andcommitted
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 6f0b0b5 ("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 <[email protected]> Signed-off-by: David Teigland <[email protected]>
1 parent 1151935 commit 63e711b

File tree

3 files changed

+110
-179
lines changed

3 files changed

+110
-179
lines changed

fs/dlm/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ static ssize_t comm_addr_store(struct config_item *item, const char *buf,
664664

665665
memcpy(addr, buf, len);
666666

667-
rv = dlm_lowcomms_addr(cm->nodeid, addr, len);
667+
rv = dlm_midcomms_addr(cm->nodeid, addr, len);
668668
if (rv) {
669669
kfree(addr);
670670
return rv;

0 commit comments

Comments
 (0)