mirror: support arbitrarily-sized iterations
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Jan 2013 08:03:15 +0000 (09:03 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 25 Jan 2013 17:18:35 +0000 (18:18 +0100)
commit884fea4e87fbc6daf4e6df618bb3cadc188dcc6b
treed18e2177c7f35c5be87c599a6e383993be654146
parent402a47411bff5e849dc880dd08ba7e6564e6e4f4
mirror: support arbitrarily-sized iterations

Yet another optimization is to extend the mirroring iteration to include more
adjacent dirty blocks.  This limits the number of I/O operations and makes
mirroring efficient even with a small granularity.  Most of the infrastructure
is already in place; we only need to put a loop around the computation of
the origin and sector count of the iteration.

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