From: Konstantin Neumoin Date: Wed, 3 May 2017 11:23:35 +0000 (+0300) Subject: vz: unlock dom until resize operation X-Git-Tag: v3.4.0-rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c5d5cb959bfe652414a337a1e0f7cb2770234b9;p=thirdparty%2Flibvirt.git vz: unlock dom until resize operation 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 --- diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c index 4fab3b9bf7..81895b4ea4 100644 --- a/src/vz/vz_sdk.c +++ b/src/vz/vz_sdk.c @@ -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;