mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
backup: drops locked memory
Since we want to backup metadata, this is the point we no longer want to hold memory locked.
This commit is contained in:
parent
702b648215
commit
e3cbdde070
@ -19,6 +19,7 @@
|
|||||||
#include "lvm-string.h"
|
#include "lvm-string.h"
|
||||||
#include "lvmcache.h"
|
#include "lvmcache.h"
|
||||||
#include "lvmetad.h"
|
#include "lvmetad.h"
|
||||||
|
#include "memlock.h"
|
||||||
#include "toolcontext.h"
|
#include "toolcontext.h"
|
||||||
#include "locking.h"
|
#include "locking.h"
|
||||||
|
|
||||||
@ -255,6 +256,9 @@ int backup_locally(struct volume_group *vg)
|
|||||||
|
|
||||||
int backup(struct volume_group *vg)
|
int backup(struct volume_group *vg)
|
||||||
{
|
{
|
||||||
|
/* Unlock memory if possible */
|
||||||
|
memlock_unlock(vg->cmd);
|
||||||
|
|
||||||
/* Don't back up orphan VGs. */
|
/* Don't back up orphan VGs. */
|
||||||
if (is_orphan_vg(vg->name))
|
if (is_orphan_vg(vg->name))
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user