From: David Vrabel <david.vrabel@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel@lists.xenproject.org,
Malcolm Crossley <malcolm.crossley@citrix.com>,
Keir Fraser <keir@xen.org>,
Ian Campbell <ian.campbell@citrix.com>, Tim Deegan <tim@xen.org>
Subject: Re: [PATCHv11 1/4] gnttab: per-active entry locking
Date: Fri, 5 Jun 2015 14:41:59 +0100 [thread overview]
Message-ID: <5571A727.3040503@citrix.com> (raw)
In-Reply-To: <5571C115020000780008167F@mail.emea.novell.com>
On 05/06/15 14:32, Jan Beulich wrote:
>>>> On 02.06.15 at 18:26, <david.vrabel@citrix.com> wrote:
>> @@ -546,13 +567,19 @@ static void mapcount(
>>
>> *wrc = *rdc = 0;
>>
>> + /*
>> + * Must have the remote domain's grant table lock while counting
>> + * its active entries.
>> + */
>> + ASSERT(spin_is_locked(&rd->grant_table->lock));
>> +
>> for ( handle = 0; handle < lgt->maptrack_limit; handle++ )
>
> The comment and the use of lgt->maptrack_limit contradict the
> documentation you add in patch 2, and it indeed is unclear why
> at this point the local domain's lock (its maptrack lock starting
> with patch 2) doesn't also need to be held.
Maybe it's a a bit subtle, but holding the local (write) lock means no
new mappings can be created and thus lgt->maptrack_limit cannot change.
Should I add
ASSERT(spin_is_locked(&lgt->lock));
here as well?
David
next prev parent reply other threads:[~2015-06-05 13:42 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 16:26 [PATCHv11 0/4] gnttab: Improve scaleability David Vrabel
2015-06-02 16:26 ` [PATCHv11 1/4] gnttab: per-active entry locking David Vrabel
2015-06-05 13:32 ` Jan Beulich
2015-06-05 13:41 ` David Vrabel [this message]
2015-06-05 14:37 ` Jan Beulich
2015-06-02 16:26 ` [PATCHv11 2/4] gnttab: introduce maptrack lock David Vrabel
2015-06-05 13:35 ` Jan Beulich
2015-06-05 13:44 ` David Vrabel
2015-06-05 14:38 ` Jan Beulich
2015-06-05 14:41 ` David Vrabel
2015-06-02 16:26 ` [PATCHv11 3/4] gnttab: make the grant table lock a read-write lock David Vrabel
2015-06-05 14:34 ` Jan Beulich
2015-06-05 14:39 ` David Vrabel
2015-06-02 16:26 ` [PATCHv11 4/4] gnttab: use per-VCPU maptrack free lists David Vrabel
2015-06-03 9:00 ` David Vrabel
2015-06-05 14:51 ` Jan Beulich
2015-06-05 15:55 ` David Vrabel
2015-06-05 16:11 ` Jan Beulich
2015-06-05 16:42 ` David Vrabel
2015-06-08 6:54 ` Jan Beulich
2015-06-11 15:28 ` Tim Deegan
2015-06-12 7:00 ` Jan Beulich
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=5571A727.3040503@citrix.com \
--to=david.vrabel@citrix.com \
--cc=JBeulich@suse.com \
--cc=ian.campbell@citrix.com \
--cc=keir@xen.org \
--cc=malcolm.crossley@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.