mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cov: do not drop already known error state
Do not try to 'discover' another error state, when ENOMEM is already detected.
This commit is contained in:
parent
e7b5f490c5
commit
65ba4964df
@ -3016,9 +3016,7 @@ static int add_lockspace_thread(const char *ls_name,
|
|||||||
!alloc_and_copy_pvs_path(&ls2->pvs, &ls->pvs)) {
|
!alloc_and_copy_pvs_path(&ls2->pvs, &ls->pvs)) {
|
||||||
log_debug("add_lockspace_thread %s fails to allocate pvs", ls->name);
|
log_debug("add_lockspace_thread %s fails to allocate pvs", ls->name);
|
||||||
rv = -ENOMEM;
|
rv = -ENOMEM;
|
||||||
}
|
} else if (ls2->thread_stop) {
|
||||||
|
|
||||||
if (ls2->thread_stop) {
|
|
||||||
log_debug("add_lockspace_thread %s exists and stopping", ls->name);
|
log_debug("add_lockspace_thread %s exists and stopping", ls->name);
|
||||||
rv = -EAGAIN;
|
rv = -EAGAIN;
|
||||||
} else if (!ls2->create_fail && !ls2->create_done) {
|
} else if (!ls2->create_fail && !ls2->create_done) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user