dlm: detect available userspace daemon
authorDavid Teigland <teigland@redhat.com>
Mon, 18 Aug 2008 16:43:30 +0000 (11:43 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 28 Aug 2008 16:49:43 +0000 (11:49 -0500)
commitdc68c7ed362a00a48290252573a8eb9f74463c3a
tree99b8b64ea08d4990373d09e01b7bac2566ad3879
parent0f8e0d9a317406612700426fad3efab0b7bbc467
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>
fs/dlm/lockspace.c
fs/dlm/lockspace.h
fs/dlm/user.c
fs/dlm/user.h