qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH untested] mirror: start drained section earlier
Date: Thu, 17 Dec 2015 10:04:05 +0100	[thread overview]
Message-ID: <56727A85.3020308@redhat.com> (raw)
In-Reply-To: <20151217021444.GE20007@ad.usersys.redhat.com>



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_end(src);
> +    }
>      bdrv_unref(src);
>  }
>  
> @@ -571,6 +575,7 @@ static void coroutine_fn mirror_run(void *opaque)
>                   */
>                  assert(QLIST_EMPTY(&bs->tracked_requests));
>                  s->common.cancelled = false;
> +                s->drained_begin = true;
>                  break;
>              }
>              bdrv_drained_end(s->common.bs);
> 

Good point, thanks!

Paolo

      reply	other threads:[~2015-12-17  9:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-16 18:33 [Qemu-devel] [PATCH untested] mirror: start drained section earlier Paolo Bonzini
2015-12-17  2:14 ` Fam Zheng
2015-12-17  9:04   ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56727A85.3020308@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=famz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).