diff options
author | David Teigland <teigland@redhat.com> | 2008-08-18 20:43:30 +0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2008-08-28 20:49:43 +0400 |
commit | dc68c7ed362a00a48290252573a8eb9f74463c3a (patch) | |
tree | 99b8b64ea08d4990373d09e01b7bac2566ad3879 /fs/dlm/user.h | |
parent | 0f8e0d9a317406612700426fad3efab0b7bbc467 (diff) | |
download | linux-dc68c7ed362a00a48290252573a8eb9f74463c3a.tar.xz |
dlm: detect available userspace daemon
If dlm_controld (the userspace daemon that controls the setup and
recovery of the dlm) fails, the kernel should shut down the lockspaces
in the kernel rather than leaving them running. This is detected by
having dlm_controld hold a misc device open while running, and if
the kernel detects a close while the daemon is still needed, it stops
the lockspaces in the kernel.
Knowing that the userspace daemon isn't running also allows the
lockspace create/remove routines to avoid waiting on the daemon
for join/leave operations.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/user.h')
-rw-r--r-- | fs/dlm/user.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/user.h b/fs/dlm/user.h index c528b6b2991b..35eb6a13d616 100644 --- a/fs/dlm/user.h +++ b/fs/dlm/user.h @@ -13,5 +13,6 @@ void dlm_user_add_ast(struct dlm_lkb *lkb, int type); int dlm_user_init(void); void dlm_user_exit(void); int dlm_device_deregister(struct dlm_ls *ls); +int dlm_user_daemon_available(void); #endif |