summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-07-08 15:14:28 -0500
committerDavid Teigland <teigland@redhat.com>2015-07-08 15:26:25 -0500
commita0cc570f86ad267e4903aac9bedaecaf22e8d714 (patch)
tree5e944f985ae4bf48d7ed158e5939059aaf82c2c9
parent903569d53375f8305bcfb8c2a0e9af7c29fa1d46 (diff)
downloadlvm2-a0cc570f86ad267e4903aac9bedaecaf22e8d714.tar.gz
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.
-rw-r--r--tools/vgchange.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c
index 92c854b2b..437dbaec1 100644
--- a/tools/vgchange.c
+++ b/tools/vgchange.c
@@ -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);
}