From: Peter Krempa Date: Tue, 27 Nov 2018 16:57:53 +0000 (+0100) Subject: qemu: migration: Don't call qemuBlockJobSyncEndDisk when block job has terminated X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e5f704c971c3a5733cea02cd1fe87a4045f7b58c;p=libvirt.git qemu: migration: Don't call qemuBlockJobSyncEndDisk when block job has terminated Now that the data is per-job, we don't really need to bother with finishing the synchronous job handling if the job is already terminated. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 3874d5e6f0..066d9490e9 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -577,7 +577,6 @@ qemuMigrationSrcNBDCopyCancelled(virDomainObjPtr vm, ATTRIBUTE_FALLTHROUGH; case VIR_DOMAIN_BLOCK_JOB_CANCELED: case VIR_DOMAIN_BLOCK_JOB_COMPLETED: - qemuBlockJobSyncEndDisk(vm, asyncJob, disk); diskPriv->migrating = false; break;