From 0c5d5cb959bfe652414a337a1e0f7cb2770234b9 Mon Sep 17 00:00:00 2001 From: Konstantin Neumoin Date: Wed, 3 May 2017 14:23:35 +0300 Subject: [PATCH] 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 --- src/vz/vz_sdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;