qemu: Rename qemuMigrationSrcCancel

Let's call this qemuMigrationSrcCancelUnattended as the function is
supposed to be used when no other thread is watching the migration.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Jiri Denemark 2022-08-30 11:18:06 +02:00
parent e4f577b25e
commit 0ff8c175f7
3 changed files with 7 additions and 3 deletions

View File

@ -6942,8 +6942,12 @@ qemuMigrationSrcToFile(virQEMUDriver *driver, virDomainObj *vm,
} }
/**
* This function is supposed to be used only when no other thread is watching
* the migration.
*/
int int
qemuMigrationSrcCancel(virDomainObj *vm) qemuMigrationSrcCancelUnattended(virDomainObj *vm)
{ {
qemuDomainObjPrivate *priv = vm->privateData; qemuDomainObjPrivate *priv = vm->privateData;
bool storage = false; bool storage = false;

View File

@ -241,7 +241,7 @@ qemuMigrationSrcToFile(virQEMUDriver *driver,
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) G_GNUC_WARN_UNUSED_RESULT; ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) G_GNUC_WARN_UNUSED_RESULT;
int int
qemuMigrationSrcCancel(virDomainObj *vm); qemuMigrationSrcCancelUnattended(virDomainObj *vm);
int int
qemuMigrationAnyFetchStats(virDomainObj *vm, qemuMigrationAnyFetchStats(virDomainObj *vm,

View File

@ -3537,7 +3537,7 @@ qemuProcessRecoverMigrationOut(virQEMUDriver *driver,
*/ */
VIR_DEBUG("Cancelling unfinished migration of domain %s", VIR_DEBUG("Cancelling unfinished migration of domain %s",
vm->def->name); vm->def->name);
if (qemuMigrationSrcCancel(vm) < 0) { if (qemuMigrationSrcCancelUnattended(vm) < 0) {
VIR_WARN("Could not cancel ongoing migration of domain %s", VIR_WARN("Could not cancel ongoing migration of domain %s",
vm->def->name); vm->def->name);
} }