diff options
author | David Teigland <teigland@redhat.com> | 2006-08-18 12:54:25 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-08-21 09:50:09 -0400 |
commit | a345da3e8f28ff69e1b14df78f7ddc6e7b78b726 (patch) | |
tree | a1aa40c1aae01064b64b953c9b4a16180dd82be9 /fs/dlm/recover.c | |
parent | 15d00c0b91ca776b51b5ab04f79ab35b06670d30 (diff) |
[DLM] dump rsb and locks on assert
Introduce new function dlm_dump_rsb() to call within assertions instead of
dlm_print_rsb(). The new function dumps info about all locks on the rsb
in addition to rsb details.
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm/recover.c')
-rw-r--r-- | fs/dlm/recover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/recover.c b/fs/dlm/recover.c index 1a86dfc8034e..528a2a0fa329 100644 --- a/fs/dlm/recover.c +++ b/fs/dlm/recover.c | |||
@@ -490,7 +490,7 @@ static int recover_locks(struct dlm_rsb *r) | |||
490 | if (all_queues_empty(r)) | 490 | if (all_queues_empty(r)) |
491 | goto out; | 491 | goto out; |
492 | 492 | ||
493 | DLM_ASSERT(!r->res_recover_locks_count, dlm_print_rsb(r);); | 493 | DLM_ASSERT(!r->res_recover_locks_count, dlm_dump_rsb(r);); |
494 | 494 | ||
495 | error = recover_locks_queue(r, &r->res_grantqueue); | 495 | error = recover_locks_queue(r, &r->res_grantqueue); |
496 | if (error) | 496 | if (error) |
@@ -557,7 +557,7 @@ int dlm_recover_locks(struct dlm_ls *ls) | |||
557 | 557 | ||
558 | void dlm_recovered_lock(struct dlm_rsb *r) | 558 | void dlm_recovered_lock(struct dlm_rsb *r) |
559 | { | 559 | { |
560 | DLM_ASSERT(rsb_flag(r, RSB_NEW_MASTER), dlm_print_rsb(r);); | 560 | DLM_ASSERT(rsb_flag(r, RSB_NEW_MASTER), dlm_dump_rsb(r);); |
561 | 561 | ||
562 | r->res_recover_locks_count--; | 562 | r->res_recover_locks_count--; |
563 | if (!r->res_recover_locks_count) { | 563 | if (!r->res_recover_locks_count) { |