]> Pileus Git - ~andy/linux/blobdiff - fs/dlm/lockspace.c
Merge tag 'iommu-updates-v3.11' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~andy/linux] / fs / dlm / lockspace.c
index 3ca79d3253b9b195e698084f76cc23e686b5a0a7..88556dc0458ee045659ed5a91875fb51d7ac2264 100644 (file)
@@ -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);
 }