aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmdomain.c
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2008-03-10 18:16:23 -0400
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:08 -0400
commit007dce53a29ccffc000ab5373d188f73881390fd (patch)
tree84ce6e26cc3bed0cb2e041b1a4aabca3449498ff /fs/ocfs2/dlm/dlmdomain.c
parent6325b4a22b8f5e40ea9353288b3d6a32181f9718 (diff)
ocfs2/dlm: Dump the dlm state in a debugfs file
This patch dumps the dlm state (dlm_ctxt) into a debugfs file. Useful for debugging. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmdomain.c')
-rw-r--r--fs/ocfs2/dlm/dlmdomain.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmdomain.c b/fs/ocfs2/dlm/dlmdomain.c
index c137d693cef3..63f8125824e8 100644
--- a/fs/ocfs2/dlm/dlmdomain.c
+++ b/fs/ocfs2/dlm/dlmdomain.c
@@ -398,6 +398,7 @@ static void dlm_destroy_dlm_worker(struct dlm_ctxt *dlm)
398static void dlm_complete_dlm_shutdown(struct dlm_ctxt *dlm) 398static void dlm_complete_dlm_shutdown(struct dlm_ctxt *dlm)
399{ 399{
400 dlm_unregister_domain_handlers(dlm); 400 dlm_unregister_domain_handlers(dlm);
401 dlm_debug_shutdown(dlm);
401 dlm_complete_thread(dlm); 402 dlm_complete_thread(dlm);
402 dlm_complete_recovery_thread(dlm); 403 dlm_complete_recovery_thread(dlm);
403 dlm_destroy_dlm_worker(dlm); 404 dlm_destroy_dlm_worker(dlm);
@@ -1418,6 +1419,12 @@ static int dlm_join_domain(struct dlm_ctxt *dlm)
1418 goto bail; 1419 goto bail;
1419 } 1420 }
1420 1421
1422 status = dlm_debug_init(dlm);
1423 if (status < 0) {
1424 mlog_errno(status);
1425 goto bail;
1426 }
1427
1421 status = dlm_launch_thread(dlm); 1428 status = dlm_launch_thread(dlm);
1422 if (status < 0) { 1429 if (status < 0) {
1423 mlog_errno(status); 1430 mlog_errno(status);
@@ -1485,6 +1492,7 @@ bail:
1485 1492
1486 if (status) { 1493 if (status) {
1487 dlm_unregister_domain_handlers(dlm); 1494 dlm_unregister_domain_handlers(dlm);
1495 dlm_debug_shutdown(dlm);
1488 dlm_complete_thread(dlm); 1496 dlm_complete_thread(dlm);
1489 dlm_complete_recovery_thread(dlm); 1497 dlm_complete_recovery_thread(dlm);
1490 dlm_destroy_dlm_worker(dlm); 1498 dlm_destroy_dlm_worker(dlm);