]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Cancel storage migration in parallel
authorJiri Denemark <jdenemar@redhat.com>
Tue, 9 Jun 2015 21:50:36 +0000 (23:50 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 19 Jun 2015 13:15:10 +0000 (15:15 +0200)
commitcebb110f7334d48f7763813aec26bc55a23c0ce9
tree27f6d0244604ba5d45f43c7efa0e5a6d667a194d
parent4172b96a3ef9da727d98f1ca928f0270024f354b
qemu: Cancel storage migration in parallel

Instead of cancelling disk mirrors sequentially, let's just call
block-job-cancel for all migrating disks and then wait until all
disappear.

In case we cancel disk mirrors at the end of successful migration we
also need to check all block jobs completed successfully. Otherwise we
have to abort the migration.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c