Skip to contentSkip to conversation

dlm: change error message to debug

PATCH In review David Teigland 1 participant 1 message Jan 24, 2008 Distributed lock manager (DLM)

lore
Share & tools
lore

David Teigland

author maintainer
#0 lore raw

PATCH 17/19 dlm: change error message to debug

The invalid lockspace messages are normal and can appear relatively often. They should be suppressed without debugging enabled.

---
 fs/dlm/lock.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
fs/dlm/lock.c +3 -2
index bc2e4ba..7ee7c7c 100644
@@ -3857,8 +3857,9 @@ void dlm_receive_buffer(struct dlm_header *hd, int nodeid)
 
 	ls = dlm_find_lockspace_global(hd->h_lockspace);
 	if (!ls) {
-		log_print("invalid h_lockspace %x from %d cmd %d type %d",
-			  hd->h_lockspace, nodeid, hd->h_cmd, type);
+		if (dlm_config.ci_log_debug)
+			log_print("invalid lockspace %x from %d cmd %d type %d",
+				  hd->h_lockspace, nodeid, hd->h_cmd, type);
 
 		if (hd->h_cmd == DLM_RCOM && type == DLM_RCOM_STATUS)
 			dlm_send_ls_not_ready(nodeid, rc);
Signature · 1 line
1.5.3.3