]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: migration: Don't call qemuBlockJobSyncEndDisk when block job has terminated
authorPeter Krempa <pkrempa@redhat.com>
Tue, 27 Nov 2018 16:57:53 +0000 (17:57 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 17 Jan 2019 16:12:50 +0000 (17:12 +0100)
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 <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c

index 3874d5e6f0ca2db2594676d26b1b7c4f82383158..066d9490e921ec78ae589e03c3b5719580d81276 100644 (file)
@@ -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;