fs: dlm: use listen sock as dlm running indicator
authorAlexander Aring <aahringo@redhat.com>
Thu, 17 Nov 2022 22:11:49 +0000 (17:11 -0500)
committerDavid Teigland <teigland@redhat.com>
Mon, 21 Nov 2022 15:45:49 +0000 (09:45 -0600)
commit1037c2a94ab51997d8b1ef9e7f6ed697e6e17d84
tree6a15e6d22cccd6b4c0055a2724f6a7c12f323972
parentdd070a56e0fa36f03bcd09fbf1521c733cf2aa21
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>
fs/dlm/config.c
fs/dlm/lowcomms.c
fs/dlm/lowcomms.h