1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-11-01 00:23:49 +03:00

lvmlockd: don't stop lockspace for EREMOVED

Undo the part of the recent EREMOVED change which
automatically stopped the lockspace for a remotely
removed VG.  It didn't always work (would not work
when lvb content was rebuilt in the dlm).  This will
be handled better when the lvb content is controlled
more strictly.
This commit is contained in:
David Teigland
2015-09-04 13:41:38 -05:00
parent 43d6b5b375
commit 10ccbc5efa

View File

@@ -1763,7 +1763,7 @@ static void res_process(struct lockspace *ls, struct resource *r,
list_del(&act->list);
add_client_result(act);
}
if (rv == -EUNATCH || rv == -EREMOVED)
if (rv == -EUNATCH)
goto r_free;
}
}
@@ -1796,7 +1796,7 @@ static void res_process(struct lockspace *ls, struct resource *r,
list_del(&act->list);
add_client_result(act);
}
if (rv == -EUNATCH || rv == -EREMOVED)
if (rv == -EUNATCH)
goto r_free;
break;
}
@@ -1817,9 +1817,6 @@ r_free:
lm_rem_resource(ls, r);
list_del(&r->list);
free_resource(r);
if (rv == -EREMOVED)
ls->thread_stop = 1;
}
#define LOCKS_EXIST_ANY 1