]> git.proxmox.com Git - mirror_qemu.git/commit
mirror: switch mirror_iteration to AIO
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Jan 2013 08:03:12 +0000 (09:03 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 25 Jan 2013 17:18:34 +0000 (18:18 +0100)
commitbd48bde8f0fa08dfc8edcafc2bc8aa6d43734463
tree8c5dfee5d05a655d7441f1f3ab6907882b2f4204
parenteee13dfe302833944d1176677d12a6ea421a94ea
mirror: switch mirror_iteration to AIO

There is really no change in the behavior of the job here, since
there is still a maximum of one in-flight I/O operation between
the source and the target.  However, this patch already introduces
the AIO callbacks (which are unmodified in the next patch)
and some of the logic to count in-flight operations and only
complete the job when there is none.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/mirror.c
trace-events