Skip to content
Snippets Groups Projects
Commit 7cb8956a authored by deen's avatar deen
Browse files

Replace D_OTHER with D_INFO in ldlm_resource_dump() calls:

1) Move ldlm_resource_dump() calls from D_OTHER to D_INFO in non-error cases.
2) In ldlm_resource_add_lock(), move CDEBUG() and ldlm_lock_dump() back to
D_OTHER for consistency with another debug output in this function.
parent 9eaf9a31
No related branches found
No related tags found
No related merge requests found
...@@ -458,7 +458,7 @@ restart: ...@@ -458,7 +458,7 @@ restart:
if (added) if (added)
ldlm_flock_destroy(req, mode, *flags); ldlm_flock_destroy(req, mode, *flags);
ldlm_resource_dump(D_OTHER, res); ldlm_resource_dump(D_INFO, res);
RETURN(LDLM_ITER_CONTINUE); RETURN(LDLM_ITER_CONTINUE);
} }
......
...@@ -796,7 +796,7 @@ static void ldlm_granted_list_add_lock(struct ldlm_lock *lock, ...@@ -796,7 +796,7 @@ static void ldlm_granted_list_add_lock(struct ldlm_lock *lock,
check_res_locked(res); check_res_locked(res);
ldlm_resource_dump(D_OTHER, res); ldlm_resource_dump(D_INFO, res);
CDEBUG(D_OTHER, "About to add this lock:\n"); CDEBUG(D_OTHER, "About to add this lock:\n");
ldlm_lock_dump(D_OTHER, lock, 0); ldlm_lock_dump(D_OTHER, lock, 0);
......
...@@ -994,8 +994,8 @@ void ldlm_resource_add_lock(struct ldlm_resource *res, struct list_head *head, ...@@ -994,8 +994,8 @@ void ldlm_resource_add_lock(struct ldlm_resource *res, struct list_head *head,
check_res_locked(res); check_res_locked(res);
ldlm_resource_dump(D_INFO, res); ldlm_resource_dump(D_INFO, res);
CDEBUG(D_INFO, "About to add this lock:\n"); CDEBUG(D_OTHER, "About to add this lock:\n");
ldlm_lock_dump(D_INFO, lock, 0); ldlm_lock_dump(D_OTHER, lock, 0);
if (lock->l_destroyed) { if (lock->l_destroyed) {
CDEBUG(D_OTHER, "Lock destroyed, not adding to resource\n"); CDEBUG(D_OTHER, "Lock destroyed, not adding to resource\n");
...@@ -1014,7 +1014,7 @@ void ldlm_resource_insert_lock_after(struct ldlm_lock *original, ...@@ -1014,7 +1014,7 @@ void ldlm_resource_insert_lock_after(struct ldlm_lock *original,
check_res_locked(res); check_res_locked(res);
ldlm_resource_dump(D_OTHER, res); ldlm_resource_dump(D_INFO, res);
CDEBUG(D_OTHER, "About to insert this lock after %p:\n", original); CDEBUG(D_OTHER, "About to insert this lock after %p:\n", original);
ldlm_lock_dump(D_OTHER, new, 0); ldlm_lock_dump(D_OTHER, new, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment