[lustre-devel] [PATCH 051/622] lustre: ldlm: Reduce debug to console during eviction

James Simmons jsimmons at infradead.org
Thu Feb 27 13:08:39 PST 2020


From: Patrick Farrell <pfarrell at whamcloud.com>

During an eviction, Lustre calls ldlm_namespace_cleanup,
and it will sometimes end up dumping all of the locks on a
particular resource to the console log
(ldlm_resource_complain), which is very wasteful and only
rarely helpful.

Move the debug level for this to D_NETERROR since it is in the
default debug mask.

Cray-bug-id: LUS-1418
WC-bug-id: https://jira.whamcloud.com/browse/LU-10648
Lustre-commit: f92fcb863cb9 ("LU-10648 ldlm: Reduce debug to console during eviction")
Signed-off-by: Chris Horn <hornc at cray.com>
Signed-off-by: Patrick Farrell <pfarrell at whamcloud.com>
Reviewed-on: https://review.whamcloud.com/31237
Reviewed-by: Sergey Cheremencev <c17829 at cray.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
 fs/lustre/ldlm/ldlm_resource.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/lustre/ldlm/ldlm_resource.c b/fs/lustre/ldlm/ldlm_resource.c
index 7fe8a8b..5d73132 100644
--- a/fs/lustre/ldlm/ldlm_resource.c
+++ b/fs/lustre/ldlm/ldlm_resource.c
@@ -819,7 +819,8 @@ static int ldlm_resource_complain(struct cfs_hash *hs, struct cfs_hash_bd *bd,
 	       ldlm_ns_name(ldlm_res_to_ns(res)), PLDLMRES(res), res,
 	       atomic_read(&res->lr_refcount) - 1);
 
-	ldlm_resource_dump(D_ERROR, res);
+	/* Use D_NETERROR since it is in the default mask */
+	ldlm_resource_dump(D_NETERROR, res);
 	unlock_res(res);
 	return 0;
 }
-- 
1.8.3.1



More information about the lustre-devel mailing list