aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/midcomms.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-11-17 17:11:46 -0500
committerDavid Teigland <teigland@redhat.com>2022-11-21 09:45:49 -0600
commit8b0188b0d60b6f6183b48380bac49fe080c5ded9 (patch)
tree5bee3dbb2b73b03bb5e4f44828dc55b2d25c3c09 /fs/dlm/midcomms.c
parent17827754e503d6c72b05a1c4603469ec9bf35d48 (diff)
downloadlinux-8b0188b0d60b6f6183b48380bac49fe080c5ded9.tar.gz
fs: dlm: add midcomms init/start functions
This patch introduces leftovers of init, start, stop and exit functionality. The dlm application layer should always call the midcomms layer which getting aware of such event and redirect it to the lowcomms layer. Some functionality which is currently handled inside the start functionality of midcomms and lowcomms should be handled in the init functionality as it only need to be initialized once when dlm is loaded. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/midcomms.c')
-rw-r--r--fs/dlm/midcomms.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/fs/dlm/midcomms.c b/fs/dlm/midcomms.c
index 960def5ab5304..6b4c72fb01710 100644
--- a/fs/dlm/midcomms.c
+++ b/fs/dlm/midcomms.c
@@ -1206,12 +1206,27 @@ void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh,
int dlm_midcomms_start(void)
{
+ return dlm_lowcomms_start();
+}
+
+void dlm_midcomms_stop(void)
+{
+ dlm_lowcomms_stop();
+}
+
+void dlm_midcomms_init(void)
+{
int i;
for (i = 0; i < CONN_HASH_SIZE; i++)
INIT_HLIST_HEAD(&node_hash[i]);
- return dlm_lowcomms_start();
+ dlm_lowcomms_init();
+}
+
+void dlm_midcomms_exit(void)
+{
+ dlm_lowcomms_exit();
}
static void dlm_act_fin_ack_rcv(struct midcomms_node *node)