summaryrefslogtreecommitdiff
path: root/tools/lvchange.c
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2018-06-01 13:04:12 +0100
committerJoe Thornber <ejt@redhat.com>2018-06-01 13:04:12 +0100
commitdbba1e9b93bac348c0df556b160676234cc8a8c4 (patch)
treeb1db4389e0288231ad36d7a6de607bcc38f38c3a /tools/lvchange.c
parent89fdc0b5889d24fe785e7fa4c2be13659d1ed0b2 (diff)
parentcb379c86c4b468858b781695934d5ad5957108d2 (diff)
downloadlvm2-dbba1e9b93bac348c0df556b160676234cc8a8c4.tar.gz
Merge branch 'master' into 2018-05-11-fork-libdm
Diffstat (limited to 'tools/lvchange.c')
-rw-r--r--tools/lvchange.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index 0f53d8a14..036b851b5 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -1056,9 +1056,11 @@ static int _lvchange_properties_single(struct cmd_context *cmd,
int i, opt_enum;
uint32_t mr = 0;
- /* If LV is inactive here, ensure it's not active elsewhere. */
- if (!lockd_lv(cmd, lv, "ex", 0))
- return_ECMD_FAILED;
+ /*
+ * We do not acquire an lvmlockd lock on the LV here because these are
+ * VG metadata changes that do not conflict with the LV being active on
+ * another host.
+ */
/* First group of options which allow for one metadata commit/update for the whole group */
for (i = 0; i < cmd->command->ro_count; i++) {