From: Fam Zheng <famz@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org, Kevin Wolf <kwolf@redhat.com>,
qemu-block@nongnu.org, stefanha@redhat.com,
Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH for-2.10 2/4] block-backend: Allow more "can inactivate" cases
Date: Wed, 23 Aug 2017 22:47:46 +0800 [thread overview]
Message-ID: <20170823144746.GA1866@lemon> (raw)
In-Reply-To: <dcc61514-4535-43bf-2b67-16051ef2b9c6@redhat.com>
On Wed, 08/23 09:36, Eric Blake wrote:
> On 08/23/2017 08:42 AM, Fam Zheng wrote:
> > These two conditions corresponds to mirror job's source and target,
>
> s/corresponds to/correspond to a/
>
> [can touch up on pull request]
>
> > which need to be allowed as they are part of the non-shared storage
> > migration workflow: failing to inactivate either will result in a
> > failure during migration completion.
> >
> > Signed-off-by: Fam Zheng <famz@redhat.com>
> > ---
> > block/block-backend.c | 21 ++++++++++++++++-----
> > include/sysemu/block-backend.h | 1 +
> > 2 files changed, 17 insertions(+), 5 deletions(-)
> >
> >
> > - return false;
> > + /* Inactivating means no more write to the image can be done, even if it's
>
> s/write/writes/
>
> > + * guest invisible change. For block job BBs that satisfy this, we can just
>
> reads awkwardly. Maybe 'even if it's changes invisible to the guest'?
> But I can leave your wording if I don't get confirmation.
Not sure I understand the grammar of "it's changes" but yours must be better.
Feel free to update it. Thanks,
Fam
>
> > + * allow it. This is the case for mirror job source, which is required by
> > + * libvirt non-shared block migration. */
> > + if (!(blk->perm & (BLK_PERM_WRITE | BLK_PERM_WRITE_UNCHANGED))) {
> > + return true;
> > + }
> > +
> > + return blk->force_allow_inactivate;
> > }
>
> --
> Eric Blake, Principal Software Engineer
> Red Hat, Inc. +1-919-301-3266
> Virtualization: qemu.org | libvirt.org
>
next prev parent reply other threads:[~2017-08-23 14:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-23 13:42 [Qemu-devel] [PATCH for-2.10 0/4] block: Fix non-shared storage migration Fam Zheng
2017-08-23 13:42 ` [Qemu-devel] [PATCH for-2.10 1/4] block-backend: Refactor inactivate check Fam Zheng
2017-08-23 14:33 ` Eric Blake
2017-08-23 13:42 ` [Qemu-devel] [PATCH for-2.10 2/4] block-backend: Allow more "can inactivate" cases Fam Zheng
2017-08-23 14:36 ` Eric Blake
2017-08-23 14:47 ` Fam Zheng [this message]
2017-08-23 14:57 ` Eric Blake
2017-08-23 13:42 ` [Qemu-devel] [PATCH for-2.10 3/4] mirror: Mark target BB as "force allow inactivate" Fam Zheng
2017-08-23 13:42 ` [Qemu-devel] [PATCH for-2.10 4/4] block: Update open_flags after ->inactivate() callback Fam Zheng
2017-08-23 14:11 ` Stefan Hajnoczi
2017-08-23 14:12 ` [Qemu-devel] [PATCH for-2.10 0/4] block: Fix non-shared storage migration Stefan Hajnoczi
2017-08-23 14:29 ` Dr. David Alan Gilbert
2017-08-23 14:41 ` Eric Blake
2017-08-23 14:46 ` Eric Blake
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=20170823144746.GA1866@lemon \
--to=famz@redhat.com \
--cc=eblake@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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).