mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
vgchange: don't disable VG lock in lock_stop
It was an optimization to avoid a pointless unlock call. It affects all VGs, but was only intended to affect the VG being stopped.
This commit is contained in:
parent
903569d533
commit
a0cc570f86
@ -873,8 +873,6 @@ do_start:
|
|||||||
|
|
||||||
static int _vgchange_lock_stop(struct cmd_context *cmd, struct volume_group *vg)
|
static int _vgchange_lock_stop(struct cmd_context *cmd, struct volume_group *vg)
|
||||||
{
|
{
|
||||||
/* Disable the unlock in toollib because it's pointless after the stop. */
|
|
||||||
cmd->lockd_vg_disable = 1;
|
|
||||||
return lockd_stop_vg(cmd, vg);
|
return lockd_stop_vg(cmd, vg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user