diff options
author | David Teigland <teigland@redhat.com> | 2008-03-18 22:22:11 +0300 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2008-04-21 20:18:01 +0400 |
commit | d44e0fc704143624b3e88fbf8fbcfda7a83fd299 (patch) | |
tree | af6c5a5c6ae179051caf725e46f11ff8e2f0f7c8 /fs/dlm/dlm_internal.h | |
parent | 761b9d3ffc953c24ceb55d8e12ff7e02b17e0484 (diff) | |
download | linux-d44e0fc704143624b3e88fbf8fbcfda7a83fd299.tar.xz |
dlm: recover nodes that are removed and re-added
If a node is removed from a lockspace, and then added back before the
dlm is notified of the removal, the dlm will not detect the removal
and won't clear the old state from the node. This is fixed by using a
list of added nodes so the membership recovery can detect when a newly
added node is already in the member list.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/dlm_internal.h')
-rw-r--r-- | fs/dlm/dlm_internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/dlm/dlm_internal.h b/fs/dlm/dlm_internal.h index d30ea8b433a2..c70c8e58358f 100644 --- a/fs/dlm/dlm_internal.h +++ b/fs/dlm/dlm_internal.h @@ -133,8 +133,10 @@ struct dlm_member { struct dlm_recover { struct list_head list; - int *nodeids; + int *nodeids; /* nodeids of all members */ int node_count; + int *new; /* nodeids of new members */ + int new_count; uint64_t seq; }; |