]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vz: unlock dom until resize operation
authorKonstantin Neumoin <kneumoin@virtuozzo.com>
Wed, 3 May 2017 11:23:35 +0000 (14:23 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 24 May 2017 09:29:39 +0000 (11:29 +0200)
We have to use waitDomainJob instead of waitJob, because of it
unlock the domain until job has finished, so domain will be available
for other clients.

Signed-off-by: Konstantin Neumoin <kneumoin@virtuozzo.com>
src/vz/vz_sdk.c

index 4fab3b9bf7108b3b3a7a4a5ffc514aae0c32fe7f..81895b4ea4d93ae42e8a7039b77b0d2bcb483bba 100644 (file)
@@ -4952,7 +4952,7 @@ int prlsdkResizeImage(virDomainObjPtr dom, virDomainDiskDefPtr disk,
 
     job = PrlVmDev_ResizeImage(prldisk, newsize,
                                PRIF_RESIZE_LAST_PARTITION);
-    if (PRL_FAILED(waitJob(job)))
+    if (PRL_FAILED(waitDomainJob(job, dom)))
         goto cleanup;
 
     ret = 0;