projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
194a3fb
)
fs: dlm: catch dlm_add_member() error
author
Alexander Aring
<aahringo@redhat.com>
Thu, 27 Oct 2022 20:45:25 +0000
(16:45 -0400)
committer
David Teigland
<teigland@redhat.com>
Tue, 8 Nov 2022 18:59:41 +0000
(12:59 -0600)
This patch will catch a possible dlm_add_member() and delivers it to the
dlm recovery handling.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/member.c
patch
|
blob
|
history
diff --git
a/fs/dlm/member.c
b/fs/dlm/member.c
index 2af2ccfe43a9d33b9ba1961a6bbd321a7d068b94..923c01a8a0aa27aaa7ea3e77740481885efe9a81 100644
(file)
--- a/
fs/dlm/member.c
+++ b/
fs/dlm/member.c
@@
-573,7
+573,10
@@
int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv, int *neg_out)
node = &rv->nodes[i];
if (dlm_is_member(ls, node->nodeid))
continue;
- dlm_add_member(ls, node);
+ error = dlm_add_member(ls, node);
+ if (error)
+ return error;
+
log_rinfo(ls, "add member %d", node->nodeid);
}