diff options
author | David Teigland <teigland@redhat.com> | 2015-09-09 13:09:17 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-09-10 09:47:26 -0500 |
commit | 30e489db5e05296e22037bd885d074d395ab46f4 (patch) | |
tree | 729c2ac0bec0a5ebf40ca46cc443da819e2a27c0 | |
parent | 2296999cf6922b2be0c6dc38abae0c6766996060 (diff) | |
download | lvm2-30e489db5e05296e22037bd885d074d395ab46f4.tar.gz |
vgchange: lock-stop only needs shared lock
lock-stop is one of the vgchange options that
doesn't change the VG so we can override the
default ex lock and use sh.
-rw-r--r-- | tools/vgchange.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c index 1d3c64a86..a80b678a6 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -1044,6 +1044,9 @@ static int _lockd_vgchange(struct cmd_context *cmd, int argc, char **argv) cmd->lockd_vg_enforce_sh = 1; } + if (arg_is_set(cmd, lockstop_ARG)) + cmd->lockd_vg_default_sh = 1; + /* Starting a vg lockspace means there are no locks available yet. */ if (arg_is_set(cmd, lockstart_ARG)) |