summaryrefslogtreecommitdiffstats
path: root/fs/dlm
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2022-10-27 22:45:25 +0200
committerDavid Teigland <teigland@redhat.com>2022-11-08 19:59:41 +0100
commit9c693d76abb3956433a28994924046abf1a73ef4 (patch)
tree79bbb9d7c387d69f7e9eb014865d72feab69cd23 /fs/dlm
parentfs: dlm: relax sending to allow receiving (diff)
downloadlinux-9c693d76abb3956433a28994924046abf1a73ef4.tar.xz
linux-9c693d76abb3956433a28994924046abf1a73ef4.zip
fs: dlm: catch dlm_add_member() error
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>
Diffstat (limited to 'fs/dlm')
-rw-r--r--fs/dlm/member.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/dlm/member.c b/fs/dlm/member.c
index 2af2ccfe43a9..923c01a8a0aa 100644
--- 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);
}