Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43286
b: refs/heads/master
c: 91c0dc9
h: refs/heads/master
v: v3
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Nov 30, 2006
1 parent 6babb76 commit c816fc4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d4400156d415540086c34a06e5d233122d6bf56a
refs/heads/master: 91c0dc93a1a6bbdd79707ed311e48b4397df177f
8 changes: 8 additions & 0 deletions trunk/fs/dlm/member.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,14 @@ int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv, int *neg_out)
struct dlm_member *memb, *safe;
int i, error, found, pos = 0, neg = 0, low = -1;

/* previously removed members that we've not finished removing need to
count as a negative change so the "neg" recovery steps will happen */

list_for_each_entry(memb, &ls->ls_nodes_gone, list) {
log_debug(ls, "prev removed member %d", memb->nodeid);
neg++;
}

/* move departed members from ls_nodes to ls_nodes_gone */

list_for_each_entry_safe(memb, safe, &ls->ls_nodes, list) {
Expand Down
7 changes: 7 additions & 0 deletions trunk/fs/dlm/recoverd.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ static int ls_recover(struct dlm_ls *ls, struct dlm_recover *rv)
*/

dlm_recover_rsbs(ls);
} else {
/*
* Other lockspace members may be going through the "neg" steps
* while also adding us to the lockspace, in which case they'll
* be looking for this status bit during dlm_recover_locks().
*/
dlm_set_recover_status(ls, DLM_RS_LOCKS);
}

dlm_release_root_list(ls);
Expand Down

0 comments on commit c816fc4

Please sign in to comment.