mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 01:34:11 +03:00
qemu: avoid deadlock on domain object enter monitor fail
Should be followed with qemuDomainObjExitMonitor only if qemuDomainObjEnterMonitorAsync returns 0. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
5e515b542d
commit
057c2fba1c
@ -108,7 +108,7 @@ qemuMigrationCheckTLSCreds(virQEMUDriverPtr driver,
|
||||
qemuMonitorMigrationParams migParams = { 0 };
|
||||
|
||||
if (qemuDomainObjEnterMonitorAsync(driver, vm, asyncJob) < 0)
|
||||
goto cleanup;
|
||||
return -1;
|
||||
|
||||
if (qemuMonitorGetMigrationParams(priv->mon, &migParams) < 0)
|
||||
goto cleanup;
|
||||
|
@ -4349,7 +4349,7 @@ qemuProcessSetupBalloon(virQEMUDriverPtr driver,
|
||||
return 0;
|
||||
|
||||
if (qemuDomainObjEnterMonitorAsync(driver, vm, asyncJob) < 0)
|
||||
goto cleanup;
|
||||
return -1;
|
||||
|
||||
if (vm->def->memballoon->period)
|
||||
qemuMonitorSetMemoryStatsPeriod(priv->mon, vm->def->memballoon,
|
||||
|
Loading…
Reference in New Issue
Block a user