mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
194a3fb488
commit
9c693d76ab
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user