summaryrefslogtreecommitdiffstats
path: root/fs/dlm/config.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-11-17 17:11:49 -0500
committerDavid Teigland <teigland@redhat.com>2022-11-21 09:45:49 -0600
commit1037c2a94ab51997d8b1ef9e7f6ed697e6e17d84 (patch)
tree6a15e6d22cccd6b4c0055a2724f6a7c12f323972 /fs/dlm/config.c
parentdd070a56e0fa36f03bcd09fbf1521c733cf2aa21 (diff)
downloadlinux-stable-1037c2a94ab51997d8b1ef9e7f6ed697e6e17d84.tar.gz
linux-stable-1037c2a94ab51997d8b1ef9e7f6ed697e6e17d84.tar.bz2
linux-stable-1037c2a94ab51997d8b1ef9e7f6ed697e6e17d84.zip
fs: dlm: use listen sock as dlm running indicator
This patch will switch from dlm_allow_conn to check if dlm lowcomms is running or not to if we actually have a listen socket set or not. The list socket will be set and unset in lowcomms start and shutdown functionality. To synchronize with data_ready() callback we will set the socket callback to NULL while socket lock is held. 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/config.c b/fs/dlm/config.c
index ac8b62106ce0..20b60709eccf 100644
--- a/fs/dlm/config.c
+++ b/fs/dlm/config.c
@@ -183,7 +183,7 @@ static int dlm_check_protocol_and_dlm_running(unsigned int x)
return -EINVAL;
}
- if (dlm_allow_conn)
+ if (dlm_lowcomms_is_running())
return -EBUSY;
return 0;
@@ -194,7 +194,7 @@ static int dlm_check_zero_and_dlm_running(unsigned int x)
if (!x)
return -EINVAL;
- if (dlm_allow_conn)
+ if (dlm_lowcomms_is_running())
return -EBUSY;
return 0;