From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
To: John Snow <jsnow@redhat.com>,
"qemu-block@nongnu.org" <qemu-block@nongnu.org>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: Eric Blake <eblake@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>, Fam Zheng <fam@euphon.net>,
"libvir-list@redhat.com" <libvir-list@redhat.com>,
Juan Quintela <quintela@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 2/6] block/dirty-bitmaps: rename frozen predicate helper
Date: Mon, 18 Feb 2019 17:11:27 +0000 [thread overview]
Message-ID: <3b02bf4c-f6ce-5767-d456-82b6a1111007@virtuozzo.com> (raw)
In-Reply-To: <b0847f1f-c142-0c35-f04a-7436f840af25@virtuozzo.com>
18.02.2019 16:57, Vladimir Sementsov-Ogievskiy wrote:
> 14.02.2019 2:23, John Snow wrote:
>> "Frozen" was a good description a long time ago, but it isn't adequate now.
>> Rename the frozen predicate to has_successor to make the semantics of the
>> predicate more clear to outside callers.
>>
>> In the process, remove some calls to frozen() that no longer semantically
>> make sense. For enabled and disabled in particular, it's actually okay for
>> the internals to do this but only forbidden for users to invoke them, and
>
> I'm a bit lost in this paragraph.. to this - what?, to invoke them - whom?
> I think, it would be simpler for me to read patch itself :)
>
>> all of the QMP entry uses already check against qmp_locked.
>>
>> Several other assertions really want to check that the bitmap isn't in-use
>> by another operation -- use the qmp_locked function for this instead, which
>> presently also checks for has_successor.
>
> hm, you mean user_locked, not qmp_locked.
>
>>
>> Signed-off-by: John Snow <jsnow@redhat.com>
>> ---
>> block/dirty-bitmap.c | 32 +++++++++++++++++---------------
>> include/block/dirty-bitmap.h | 2 +-
>> migration/block-dirty-bitmap.c | 2 +-
>> 3 files changed, 19 insertions(+), 17 deletions(-)
>>
>> diff --git a/block/dirty-bitmap.c b/block/dirty-bitmap.c
>> index 101383b3af..639ebc0645 100644
>> --- a/block/dirty-bitmap.c
>> +++ b/block/dirty-bitmap.c
>> @@ -50,7 +50,7 @@ struct BdrvDirtyBitmap {
>> HBitmap *meta; /* Meta dirty bitmap */
>> bool qmp_locked; /* Bitmap is locked, it can't be modified
>> through QMP */
>> - BdrvDirtyBitmap *successor; /* Anonymous child; implies frozen status */
>> + BdrvDirtyBitmap *successor; /* Anonymous child; implies user_locked state */
>
> aha, looks like a good moment to fix preexisting misalignment of the comment,
> but new line is exactly 80 characters length, so, not a good moment)
and there was no any misalignment, only thunderbird bug...
--
Best regards,
Vladimir
next prev parent reply other threads:[~2019-02-18 17:11 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-13 23:23 [Qemu-devel] [PATCH v2 0/6] dirty-bitmaps: deprecate @status field John Snow
2019-02-13 23:23 ` [Qemu-devel] [PATCH v2 1/6] block/dirty-bitmap: add recording and busy properties John Snow
2019-02-14 2:54 ` Eric Blake
2019-02-18 13:27 ` Vladimir Sementsov-Ogievskiy
2019-02-13 23:23 ` [Qemu-devel] [PATCH v2 2/6] block/dirty-bitmaps: rename frozen predicate helper John Snow
2019-02-14 2:57 ` Eric Blake
2019-02-18 13:57 ` Vladimir Sementsov-Ogievskiy
2019-02-18 17:11 ` Vladimir Sementsov-Ogievskiy [this message]
2019-02-18 22:32 ` John Snow
2019-02-19 10:17 ` Vladimir Sementsov-Ogievskiy
2019-02-19 20:05 ` John Snow
2019-02-13 23:23 ` [Qemu-devel] [PATCH v2 3/6] block/dirty-bitmap: change semantics of enabled predicate John Snow
2019-02-18 16:39 ` Vladimir Sementsov-Ogievskiy
2019-02-18 23:15 ` John Snow
2019-02-13 23:23 ` [Qemu-devel] [PATCH v2 4/6] block/dirty-bitmap: explicitly lock bitmaps with successors John Snow
2019-02-18 16:52 ` Vladimir Sementsov-Ogievskiy
2019-02-18 22:13 ` John Snow
2019-02-13 23:23 ` [Qemu-devel] [PATCH v2 5/6] block/dirty-bitmaps: unify qmp_locked and user_locked calls John Snow
2019-02-18 17:27 ` Vladimir Sementsov-Ogievskiy
2019-02-18 23:24 ` John Snow
2019-02-13 23:23 ` [Qemu-devel] [PATCH v2 6/6] block/dirty-bitmaps: move comment block John Snow
2019-02-14 3:01 ` Eric Blake
2019-02-18 17:39 ` Vladimir Sementsov-Ogievskiy
2019-02-18 22:03 ` John Snow
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=3b02bf4c-f6ce-5767-d456-82b6a1111007@virtuozzo.com \
--to=vsementsov@virtuozzo.com \
--cc=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=eblake@redhat.com \
--cc=fam@euphon.net \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=libvir-list@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--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).