diff options
Diffstat (limited to 'tools/vgremove.c')
-rw-r--r-- | tools/vgremove.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/vgremove.c b/tools/vgremove.c index 6c31c9a3e..9941d04b1 100644 --- a/tools/vgremove.c +++ b/tools/vgremove.c @@ -67,6 +67,13 @@ static int vgremove_single(struct cmd_context *cmd, const char *vg_name, lvmlockd_free_vg_final(cmd, vg); + /* + * The vg lock no longer exists, so don't bother unlocking it. + * (This would be nice to do in lvmlockd_free_vg_final(), but + * cmd->command is not accessible lib.) + */ + cmd->command->flags |= DLOCK_VG_NA; + return ECMD_PROCESSED; } |