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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user