mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
qemu: fix potential dead lock
If we lock the qemu_driver, we should call qemuDomainObjBeginJobWithDriver() not qemuDomainObjBeginJob(). (cherry picked from commit 5136c5799fabe411eb0fadc59377572e21386d83)
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…
x
Reference in New Issue
Block a user