summaryrefslogtreecommitdiff
path: root/fs/dlm/config.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2006-04-28 10:50:41 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-04-28 10:50:41 -0400
commit1c032c03117c014512195f2e33c3af999f132146 (patch)
tree2032d1965331fb1882fdb306c678cf4497b35c10 /fs/dlm/config.c
parentae118962b9f8572b5ff00e85c053dbeede2314db (diff)
[DLM] PATCH 2/3 dlm: lowcomms close
When a node is removed from a lockspace configuration, close our connection to it, clearing any remaining messages for it. Signed-off-by: David Teigland <teigland@redhat.com> Signed-off-by: Patrick Caulfield <pcaulfie@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm/config.c')
-rw-r--r--fs/dlm/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/dlm/config.c b/fs/dlm/config.c
index 87df9616415e..88553054bbfa 100644
--- a/fs/dlm/config.c
+++ b/fs/dlm/config.c
@@ -17,6 +17,7 @@
#include <net/sock.h>
#include "config.h"
+#include "lowcomms.h"
/*
* /config/dlm/<cluster>/spaces/<space>/nodes/<node>/nodeid
@@ -429,6 +430,7 @@ static void drop_comm(struct config_group *g, struct config_item *i)
struct comm *cm = to_comm(i);
if (local_comm == cm)
local_comm = NULL;
+ dlm_lowcomms_close(cm->nodeid);
while (cm->addr_count--)
kfree(cm->addr[cm->addr_count]);
config_item_put(i);