mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 10:03:49 +03:00
LXC: use virDomainObjClearJob() instead of virLXCDomainObjFreeJob()
Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
09ed065443
commit
15558166b2
@ -35,11 +35,6 @@
|
|||||||
|
|
||||||
VIR_LOG_INIT("lxc.lxc_domain");
|
VIR_LOG_INIT("lxc.lxc_domain");
|
||||||
|
|
||||||
static void
|
|
||||||
virLXCDomainObjFreeJob(virLXCDomainObjPrivate *priv)
|
|
||||||
{
|
|
||||||
ignore_value(virCondDestroy(&priv->job.cond));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Give up waiting for mutex after 30 seconds */
|
/* Give up waiting for mutex after 30 seconds */
|
||||||
#define LXC_JOB_WAIT_TIME (1000ull * 30)
|
#define LXC_JOB_WAIT_TIME (1000ull * 30)
|
||||||
@ -142,7 +137,7 @@ virLXCDomainObjPrivateFree(void *data)
|
|||||||
virLXCDomainObjPrivate *priv = data;
|
virLXCDomainObjPrivate *priv = data;
|
||||||
|
|
||||||
virCgroupFree(priv->cgroup);
|
virCgroupFree(priv->cgroup);
|
||||||
virLXCDomainObjFreeJob(priv);
|
virDomainObjClearJob(&priv->job);
|
||||||
g_free(priv);
|
g_free(priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user