From e3cbdde070b25db30984efa0898f16c2555301d9 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 19 Sep 2014 15:31:41 +0200 Subject: [PATCH] backup: drops locked memory Since we want to backup metadata, this is the point we no longer want to hold memory locked. --- lib/format_text/archiver.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/format_text/archiver.c b/lib/format_text/archiver.c index 2667bdbe8..a2f40f2df 100644 --- a/lib/format_text/archiver.c +++ b/lib/format_text/archiver.c @@ -19,6 +19,7 @@ #include "lvm-string.h" #include "lvmcache.h" #include "lvmetad.h" +#include "memlock.h" #include "toolcontext.h" #include "locking.h" @@ -255,6 +256,9 @@ int backup_locally(struct volume_group *vg) int backup(struct volume_group *vg) { + /* Unlock memory if possible */ + memlock_unlock(vg->cmd); + /* Don't back up orphan VGs. */ if (is_orphan_vg(vg->name)) return 1;