mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-06 21:15:22 +00:00
qemu: fix potential dead lock
If we lock the qemu_driver, we should call qemuDomainObjBeginJobWithDriver()
not qemuDomainObjBeginJob().
(cherry picked from commit 5136c5799f
)
This commit is contained in:
parent
7223766077
commit
d2c5e42fdd
@ -8874,7 +8874,7 @@ qemuDomainMigrateBegin3(virDomainPtr domain,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
asyncJob = QEMU_ASYNC_JOB_MIGRATION_OUT;
|
asyncJob = QEMU_ASYNC_JOB_MIGRATION_OUT;
|
||||||
} else {
|
} else {
|
||||||
if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_MODIFY) < 0)
|
if (qemuDomainObjBeginJobWithDriver(driver, vm, QEMU_JOB_MODIFY) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
asyncJob = QEMU_ASYNC_JOB_NONE;
|
asyncJob = QEMU_ASYNC_JOB_NONE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user