[libvirt] [PATCH] openvz: unlock virDomainObj objects in openvzOpen

Dmitry Guryanov dguryanov at parallels.com
Tue Aug 14 10:58:09 UTC 2012


openvzOpen fucntion must leave unlocked virDomainObj objects in
driver->domains.

Now even simple commands like list or domain lookup hang,
for example virsh -c openvz:///system list --all.

Signed-off-by: Dmitry Guryanov <dguryanov at parallels.com>
---
 src/openvz/openvz_conf.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c
index e62bf8c..802a9f8 100644
--- a/src/openvz/openvz_conf.c
+++ b/src/openvz/openvz_conf.c
@@ -673,6 +673,7 @@ int openvzLoadDomains(struct openvz_driver *driver) {
             goto cleanup;
         }
 
+        virDomainObjUnlock(dom);
         dom = NULL;
     }
 
-- 
1.7.1




More information about the libvir-list mailing list