diff options
author | Joe Thornber <ejt@redhat.com> | 2018-06-01 13:04:12 +0100 |
---|---|---|
committer | Joe Thornber <ejt@redhat.com> | 2018-06-01 13:04:12 +0100 |
commit | dbba1e9b93bac348c0df556b160676234cc8a8c4 (patch) | |
tree | b1db4389e0288231ad36d7a6de607bcc38f38c3a /tools/lvchange.c | |
parent | 89fdc0b5889d24fe785e7fa4c2be13659d1ed0b2 (diff) | |
parent | cb379c86c4b468858b781695934d5ad5957108d2 (diff) | |
download | lvm2-dbba1e9b93bac348c0df556b160676234cc8a8c4.tar.gz |
Merge branch 'master' into 2018-05-11-fork-libdm
Diffstat (limited to 'tools/lvchange.c')
-rw-r--r-- | tools/lvchange.c | 8 |
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++) { |