]> git.proxmox.com Git - mirror_qemu.git/commit
mirror: do not flush every time the disks are synced
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2016 16:20:08 +0000 (17:20 +0100)
committerJeff Cody <jcody@redhat.com>
Tue, 15 Nov 2016 03:49:26 +0000 (22:49 -0500)
commitbdffb31d8eece1cbd4d88f136daccfe1f93a1bf6
tree86371e7fba7fc7ab8530563ffa564b6f78c4b26e
parent4e504535c16dfa66290281e704384abfaca08673
mirror: do not flush every time the disks are synced

This puts a huge strain on the disks when there are many concurrent
migrations.  With this patch we only flush twice: just before issuing
the event, and just before pivoting to the destination.  If management
will complete the job close to the BLOCK_JOB_READY event, the cost of
the second flush should be small anyway.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20161109162008.27287-2-pbonzini@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/mirror.c