[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>
This commit is contained in:
committed by
Steven Whitehouse
parent
15d00c0b91
commit
a345da3e8f
@ -490,7 +490,7 @@ static int recover_locks(struct dlm_rsb *r)
|
||||
if (all_queues_empty(r))
|
||||
goto out;
|
||||
|
||||
DLM_ASSERT(!r->res_recover_locks_count, dlm_print_rsb(r););
|
||||
DLM_ASSERT(!r->res_recover_locks_count, dlm_dump_rsb(r););
|
||||
|
||||
error = recover_locks_queue(r, &r->res_grantqueue);
|
||||
if (error)
|
||||
@ -557,7 +557,7 @@ int dlm_recover_locks(struct dlm_ls *ls)
|
||||
|
||||
void dlm_recovered_lock(struct dlm_rsb *r)
|
||||
{
|
||||
DLM_ASSERT(rsb_flag(r, RSB_NEW_MASTER), dlm_print_rsb(r););
|
||||
DLM_ASSERT(rsb_flag(r, RSB_NEW_MASTER), dlm_dump_rsb(r););
|
||||
|
||||
r->res_recover_locks_count--;
|
||||
if (!r->res_recover_locks_count) {
|
||||
|
Reference in New Issue
Block a user