aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2007-01-29 18:37:02 -0500
committerMark Fasheh <mark.fasheh@oracle.com>2007-02-07 15:10:14 -0500
commite4968476a9bc5a6b30076076b4f3ce3e692e0d79 (patch)
treeb448f5e10e069785c2a76ebde2f264523c694009
parent1faf289454b9eeb6e463da3eee47f7009668370d (diff)
ocfs2_dlm: Silence some messages during join domain
These messages can easily be activated using the mlog infrastructure and don't need to be enabled by default. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
-rw-r--r--fs/ocfs2/dlm/dlmdomain.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/ocfs2/dlm/dlmdomain.c b/fs/ocfs2/dlm/dlmdomain.c
index 19b57a6bcb1a..e8ecf8c3dbe7 100644
--- a/fs/ocfs2/dlm/dlmdomain.c
+++ b/fs/ocfs2/dlm/dlmdomain.c
@@ -707,6 +707,9 @@ static int dlm_query_join_handler(struct o2net_msg *msg, u32 len, void *data,
707 while (nodenum < O2NM_MAX_NODES) { 707 while (nodenum < O2NM_MAX_NODES) {
708 if (test_bit(nodenum, dlm->domain_map)) { 708 if (test_bit(nodenum, dlm->domain_map)) {
709 if (!byte_test_bit(nodenum, query->node_map)) { 709 if (!byte_test_bit(nodenum, query->node_map)) {
710 mlog(0, "disallow join as node %u does not "
711 "have node %u in its nodemap\n",
712 query->node_idx, nodenum);
710 response = JOIN_DISALLOW; 713 response = JOIN_DISALLOW;
711 goto unlock_respond; 714 goto unlock_respond;
712 } 715 }
@@ -732,15 +735,15 @@ static int dlm_query_join_handler(struct o2net_msg *msg, u32 len, void *data,
732 /* Disallow parallel joins. */ 735 /* Disallow parallel joins. */
733 response = JOIN_DISALLOW; 736 response = JOIN_DISALLOW;
734 } else if (dlm->reco.state & DLM_RECO_STATE_ACTIVE) { 737 } else if (dlm->reco.state & DLM_RECO_STATE_ACTIVE) {
735 mlog(ML_NOTICE, "node %u trying to join, but recovery " 738 mlog(0, "node %u trying to join, but recovery "
736 "is ongoing.\n", bit); 739 "is ongoing.\n", bit);
737 response = JOIN_DISALLOW; 740 response = JOIN_DISALLOW;
738 } else if (test_bit(bit, dlm->recovery_map)) { 741 } else if (test_bit(bit, dlm->recovery_map)) {
739 mlog(ML_NOTICE, "node %u trying to join, but it " 742 mlog(0, "node %u trying to join, but it "
740 "still needs recovery.\n", bit); 743 "still needs recovery.\n", bit);
741 response = JOIN_DISALLOW; 744 response = JOIN_DISALLOW;
742 } else if (test_bit(bit, dlm->domain_map)) { 745 } else if (test_bit(bit, dlm->domain_map)) {
743 mlog(ML_NOTICE, "node %u trying to join, but it " 746 mlog(0, "node %u trying to join, but it "
744 "is still in the domain! needs recovery?\n", 747 "is still in the domain! needs recovery?\n",
745 bit); 748 bit);
746 response = JOIN_DISALLOW; 749 response = JOIN_DISALLOW;