aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/lock.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2008-01-08 17:24:00 -0500
committerDavid Teigland <teigland@redhat.com>2008-01-30 12:04:42 -0500
commit46b43eed7018bab3a4e8c259eed27697b9170cb8 (patch)
treed5a1c23ba3bb40ff2fcea4e635c72f2a33ff6ba7 /fs/dlm/lock.c
parentaec64e1be2225c6fc64499594d23257c6adf6168 (diff)
dlm: reject messages from non-members
Messages from nodes that are no longer members of the lockspace should be ignored. When nodes are removed from the lockspace, recovery can sometimes complete quickly enough that messages arrive from a removed node after recovery has completed. When processed, these messages would often cause an error message, and could in some cases change some state, causing problems. Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lock.c')
-rw-r--r--fs/dlm/lock.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c
index d5e8ea1b4f75..c3b9fca17044 100644
--- a/fs/dlm/lock.c
+++ b/fs/dlm/lock.c
@@ -1,7 +1,7 @@
1/****************************************************************************** 1/******************************************************************************
2******************************************************************************* 2*******************************************************************************
3** 3**
4** Copyright (C) 2005-2007 Red Hat, Inc. All rights reserved. 4** Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved.
5** 5**
6** This copyrighted material is made available to anyone wishing to use, 6** This copyrighted material is made available to anyone wishing to use,
7** modify, copy, or redistribute it subject to the terms and conditions 7** modify, copy, or redistribute it subject to the terms and conditions
@@ -3643,6 +3643,13 @@ static void receive_lookup_reply(struct dlm_ls *ls, struct dlm_message *ms)
3643 3643
3644static void _receive_message(struct dlm_ls *ls, struct dlm_message *ms) 3644static void _receive_message(struct dlm_ls *ls, struct dlm_message *ms)
3645{ 3645{
3646 if (!dlm_is_member(ls, ms->m_header.h_nodeid)) {
3647 log_debug(ls, "ignore non-member message %d from %d %x %x %d",
3648 ms->m_type, ms->m_header.h_nodeid, ms->m_lkid,
3649 ms->m_remid, ms->m_result);
3650 return;
3651 }
3652
3646 switch (ms->m_type) { 3653 switch (ms->m_type) {
3647 3654
3648 /* messages sent to a master node */ 3655 /* messages sent to a master node */