1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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:
David Teigland 2015-07-08 15:14:28 -05:00
parent 903569d533
commit a0cc570f86

View File

@ -873,8 +873,6 @@ do_start:
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);
}