summaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2013-06-25 12:48:01 -0500
committerDavid Teigland <teigland@redhat.com>2013-06-25 12:53:20 -0500
commit696b3d84605e5546cbddefdc95b9099f908fd56e (patch)
tree51a4e2751455e456574cd4cbb1db28fa44905d20 /fs/dlm
parentad917e7f821855a2f223131bb6c90ca6c9240bf3 (diff)
downloadop-kernel-dev-696b3d84605e5546cbddefdc95b9099f908fd56e.zip
op-kernel-dev-696b3d84605e5546cbddefdc95b9099f908fd56e.tar.gz
dlm: log an error for unmanaged lockspaces
Log an error message if the dlm user daemon exits before all the lockspaces have been removed. Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/lockspace.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c
index 3ca79d3..88556dc 100644
--- a/fs/dlm/lockspace.c
+++ b/fs/dlm/lockspace.c
@@ -883,17 +883,24 @@ int dlm_release_lockspace(void *lockspace, int force)
void dlm_stop_lockspaces(void)
{
struct dlm_ls *ls;
+ int count;
restart:
+ count = 0;
spin_lock(&lslist_lock);
list_for_each_entry(ls, &lslist, ls_list) {
- if (!test_bit(LSFL_RUNNING, &ls->ls_flags))
+ if (!test_bit(LSFL_RUNNING, &ls->ls_flags)) {
+ count++;
continue;
+ }
spin_unlock(&lslist_lock);
log_error(ls, "no userland control daemon, stopping lockspace");
dlm_ls_stop(ls);
goto restart;
}
spin_unlock(&lslist_lock);
+
+ if (count)
+ log_print("dlm user daemon left %d lockspaces", count);
}
OpenPOWER on IntegriCloud