Re: [Qemu-devel] [PATCH untested] mirror: start drained section earlier

2015-12-17 Thread Paolo Bonzini
On 17/12/2015 03:14, Fam Zheng wrote: > @@ -388,7 +390,9 @@ static void mirror_exit(BlockJob *job, void *opaque) > bdrv_unref(s->target); > block_job_completed(&s->common, data->ret); > g_free(data); > -bdrv_drained_end(src); > +if (drained_begin) { > +bdrv_drained_

Re: [Qemu-devel] [PATCH untested] mirror: start drained section earlier

2015-12-16 Thread Fam Zheng
On Wed, 12/16 19:33, Paolo Bonzini wrote: > Ensure that the guest does not write anything to disk after cnt is > read for the final time. > > Signed-off-by: Paolo Bonzini > --- > Untested. > > block/mirror.c | 22 +++--- > 1 file changed, 11 insertions(+), 11 deletions(-

[Qemu-devel] [PATCH untested] mirror: start drained section earlier

2015-12-16 Thread Paolo Bonzini
Ensure that the guest does not write anything to disk after cnt is read for the final time. Signed-off-by: Paolo Bonzini --- Untested. block/mirror.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/block/mirror.c b/block/mirror.c index 0e8f55