mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu: End nested jobs properly
Ending a nested job is no different from ending any other (non-async) job, after all the code in qemuDomainBeginJobInternal does not handle them differently either. Thus we should call qemuDomainObjEndJob to stop nested jobs. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
17c4312c63
commit
bf657dffb8
@ -1933,11 +1933,8 @@ qemuDomainObjExitMonitorInternal(virQEMUDriverPtr driver,
|
||||
if (!hasRefs)
|
||||
priv->mon = NULL;
|
||||
|
||||
if (priv->job.active == QEMU_JOB_ASYNC_NESTED) {
|
||||
qemuDomainObjResetJob(priv);
|
||||
qemuDomainObjSaveJob(driver, obj);
|
||||
virCondSignal(&priv->job.cond);
|
||||
}
|
||||
if (priv->job.active == QEMU_JOB_ASYNC_NESTED)
|
||||
qemuDomainObjEndJob(driver, obj);
|
||||
}
|
||||
|
||||
void qemuDomainObjEnterMonitor(virQEMUDriverPtr driver,
|
||||
|
Loading…
x
Reference in New Issue
Block a user