From: David Teigland <teigland@redhat.com> Date: Thu, 5 Jun 2008 14:10:45 -0500 Subject: [dlm] change error message to debug Message-id: 20080605191045.GM18635@redhat.com O-Subject: [RHEL5.3 PATCH 13/18] dlm: change error message to debug Bugzilla: 450132 RH-Acked-by: Bob Peterson <rpeterso@redhat.com> bz 450132 dlm: fixes for recovery of user lockspace Fix bugs when userland apps using the dlm join/leave the lockspace, causing recovery. brew build including this patch http://brewweb.devel.redhat.com/brew/taskinfo?taskID=1344633 upstream commit: >From 594199ebaae5d77f025974dfcfa6651cc81325a8 Mon Sep 17 00:00:00 2001 >From: David Teigland <teigland@redhat.com> >Date: Wed, 16 Jan 2008 11:03:41 -0600 >Subject: [PATCH] dlm: change error message to debug The invalid lockspace messages are normal and can appear relatively often. They should be suppressed without debugging enabled. Signed-off-by: David Teigland <teigland@redhat.com> diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c index 223b0ad..c6996ba 100644 --- a/fs/dlm/lock.c +++ b/fs/dlm/lock.c @@ -3858,8 +3858,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);