diff --git a/tools/lvchange.c b/tools/lvchange.c index 3ee88e762..4931014e8 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -108,7 +108,7 @@ static int lvchange_availability(struct cmd_context *cmd, static int lvchange_refresh(struct cmd_context *cmd, struct logical_volume *lv) { log_verbose("Refreshing logical volume \"%s\" (if active)", lv->name); - if (!lock_vol(cmd, lv->lvid.s, LCK_LV_SUSPEND | LCK_LV_HOLD) || + if (!lock_vol(cmd, lv->lvid.s, LCK_LV_SUSPEND | LCK_HOLD) || !unlock_vol(cmd, lv->lvid.s)) return 0;