Skip to contentSkip to conversation

master - vgchange: don't disable VG lock in lock_stop

PATCH David Teigland 1 participant 1 message Jul 8, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a0cc570f86ad267e4903aac9bedaecaf22e8d714
Commit:        a0cc570f86ad267e4903aac9bedaecaf22e8d714
Parent:        903569d53375f8305bcfb8c2a0e9af7c29fa1d46
Author:        David Teigland <[email protected]>
AuthorDate:    Wed Jul 8 15:14:28 2015 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Wed Jul 8 15:26:25 2015 -0500

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.

---
 tools/vgchange.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
tools/vgchange.c +0 -2
index 92c854b..437dbae 100644
@@ -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);
 }