mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: Clear async job when p2p migration fails early
When p2p migration fails early because qemuMigrationIsAllowed or qemuMigrationIsSafe say migration should be cancelled, we fail to clear the migration-out async job. As a result of that, further APIs called for the same domain may fail with Timed out during operation: cannot acquire state change lock. Reported by Guido Winkelmann.
This commit is contained in:
parent
1e7ec88d9a
commit
837993d845
@ -2641,10 +2641,10 @@ qemuMigrationPerformJob(struct qemud_driver *driver,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!qemuMigrationIsAllowed(driver, vm, NULL))
|
if (!qemuMigrationIsAllowed(driver, vm, NULL))
|
||||||
goto cleanup;
|
goto endjob;
|
||||||
|
|
||||||
if (!(flags & VIR_MIGRATE_UNSAFE) && !qemuMigrationIsSafe(vm->def))
|
if (!(flags & VIR_MIGRATE_UNSAFE) && !qemuMigrationIsSafe(vm->def))
|
||||||
goto cleanup;
|
goto endjob;
|
||||||
|
|
||||||
resume = virDomainObjGetState(vm, NULL) == VIR_DOMAIN_RUNNING;
|
resume = virDomainObjGetState(vm, NULL) == VIR_DOMAIN_RUNNING;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user