diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-11-17 23:11:49 +0100 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-11-21 16:45:49 +0100 |
commit | 1037c2a94ab51997d8b1ef9e7f6ed697e6e17d84 (patch) | |
tree | 6a15e6d22cccd6b4c0055a2724f6a7c12f323972 /fs/dlm/lowcomms.h | |
parent | fs: dlm: use list_first_entry_or_null (diff) | |
download | linux-1037c2a94ab51997d8b1ef9e7f6ed697e6e17d84.tar.xz linux-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/lowcomms.h')
-rw-r--r-- | fs/dlm/lowcomms.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/lowcomms.h b/fs/dlm/lowcomms.h index bbce7a18416d..acaf1b0b3885 100644 --- a/fs/dlm/lowcomms.h +++ b/fs/dlm/lowcomms.h @@ -29,8 +29,8 @@ static inline int nodeid_hash(int nodeid) return nodeid & (CONN_HASH_SIZE-1); } -/* switch to check if dlm is running */ -extern int dlm_allow_conn; +/* check if dlm is running */ +bool dlm_lowcomms_is_running(void); int dlm_lowcomms_start(void); void dlm_lowcomms_shutdown(void); |