[PATCH 07/11] LXC: use virDomainObjClearJob() instead of virLXCDomainObjFreeJob()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Kristina Hanicova <khanicov@xxxxxxxxxx>
---
 src/lxc/lxc_domain.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/lxc/lxc_domain.c b/src/lxc/lxc_domain.c
index 6f048a128a..654c35c640 100644
--- a/src/lxc/lxc_domain.c
+++ b/src/lxc/lxc_domain.c
@@ -35,11 +35,6 @@
 
 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 */
 #define LXC_JOB_WAIT_TIME (1000ull * 30)
@@ -142,7 +137,7 @@ virLXCDomainObjPrivateFree(void *data)
     virLXCDomainObjPrivate *priv = data;
 
     virCgroupFree(priv->cgroup);
-    virLXCDomainObjFreeJob(priv);
+    virDomainObjClearJob(&priv->job);
     g_free(priv);
 }
 
-- 
2.37.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux