diff options
author | Alexander Aring <aahringo@redhat.com> | 2022-10-27 22:45:25 +0200 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-11-08 19:59:41 +0100 |
commit | 9c693d76abb3956433a28994924046abf1a73ef4 (patch) | |
tree | 79bbb9d7c387d69f7e9eb014865d72feab69cd23 /fs/dlm | |
parent | fs: dlm: relax sending to allow receiving (diff) | |
download | linux-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.c | 5 |
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); } |