Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38675
b: refs/heads/master
c: 1c032c0
h: refs/heads/master
i:
  38673: f244d3b
  38671: 9b99f83
v: v3
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Apr 28, 2006
1 parent 4f8db04 commit 407ccf1
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae118962b9f8572b5ff00e85c053dbeede2314db
refs/heads/master: 1c032c03117c014512195f2e33c3af999f132146
2 changes: 2 additions & 0 deletions trunk/fs/dlm/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <net/sock.h>

#include "config.h"
#include "lowcomms.h"

/*
* /config/dlm/<cluster>/spaces/<space>/nodes/<node>/nodeid
Expand Down Expand Up @@ -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);
Expand Down
21 changes: 21 additions & 0 deletions trunk/fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,27 @@ static void dealloc_nodeinfo(void)
}
}

int dlm_lowcomms_close(int nodeid)
{
struct nodeinfo *ni;

ni = nodeid2nodeinfo(nodeid, 0);
if (!ni)
return -1;

spin_lock(&ni->lock);
if (ni->assoc_id) {
ni->assoc_id = 0;
/* Don't send shutdown here, sctp will just queue it
till the node comes back up! */
}
spin_unlock(&ni->lock);

clean_one_writequeue(ni);
clear_bit(NI_INIT_PENDING, &ni->flags);
return 0;
}

static int write_list_empty(void)
{
int status;
Expand Down
1 change: 1 addition & 0 deletions trunk/fs/dlm/lowcomms.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ int dlm_lowcomms_init(void);
void dlm_lowcomms_exit(void);
int dlm_lowcomms_start(void);
void dlm_lowcomms_stop(void);
int dlm_lowcomms_close(int nodeid);
void *dlm_lowcomms_get_buffer(int nodeid, int len, int allocation, char **ppc);
void dlm_lowcomms_commit_buffer(void *mh);

Expand Down
1 change: 0 additions & 1 deletion trunk/fs/dlm/member.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "member.h"
#include "recoverd.h"
#include "recover.h"
#include "lowcomms.h"
#include "rcom.h"
#include "config.h"

Expand Down

0 comments on commit 407ccf1

Please sign in to comment.