From: George Dunlap <george.dunlap@eu.citrix.com>
To: Dario Faggioli <dario.faggioli@citrix.com>,
"JBeulich@suse.com" <JBeulich@suse.com>
Cc: "JGross@suse.com" <JGross@suse.com>,
"keir.xen@gmail.com" <keir.xen@gmail.com>,
"jtweaver@hawaii.edu" <jtweaver@hawaii.edu>,
George Dunlap <George.Dunlap@citrix.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] xen: avoid updating node affinity twice when removing a CPU from a cpupool
Date: Fri, 13 Mar 2015 11:15:07 +0000 [thread overview]
Message-ID: <5502C6BB.7090207@eu.citrix.com> (raw)
In-Reply-To: <1426175556.7023.41.camel@citrix.com>
On 03/12/2015 03:52 PM, Dario Faggioli wrote:
> On Thu, 2015-03-12 at 14:51 +0000, Jan Beulich wrote:
>>>>> On 12.03.15 at 14:45, <dario.faggioli@citrix.com> wrote:
>>> Patch below, and attached. However, I think the correct thing to do
>>> would be to just revert 93be8285 "update domU's node-affinity on the
>>> cpupool_unassign_cpu() path", wouldn't it?
>>
>> Indeed - if the presented patch is what we want, it should be
>> carried out as a revert. But you'll then want to explain why you
>> did what you did there in the first place:
>>
> Because I thought it was necessary. ISTR I spotted the lack of symmetry
> that George is also mentioning, by looking at its _assign_ counterpart,
> and did not notice, at that time, that it was actually ok, as the update
> happens already, although in schedule.c...
>
>> It surely wasn't without
>> reason,
>>
> It was for a wrong reason. :-)
>
>> and hence I'd be afraid the revert would re-introduce
>> another problem. That explanation should then probably go in
>> as description for the revert.
>>
> I'm not sure I'm getting 100% of what you mean. Let me try:
I'd say something like:
----
Revert c/s 93be8285
At the point this patch calls domain_update_node_affinity(), the vcpu
hard affinities have not yet been updated; so calling it at this point
can in some circumstances trigger an ASSERT().
domain_update_node_affinity() is already called in
cpu_disable_scheduler(), so adding it to cpupool_unassign_cpu() is
redundant. Simply reverting the patch is sufficient.
---
-George
next prev parent reply other threads:[~2015-03-13 11:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-09 16:49 [PATCH] xen: postpone updating domains' node affinity when removing a CPU from a cpupool Dario Faggioli
2015-03-11 10:32 ` Dario Faggioli
2015-03-11 15:01 ` George Dunlap
2015-03-11 16:04 ` Dario Faggioli
2015-03-12 13:45 ` [PATCH] xen: avoid updating node affinity twice " Dario Faggioli
2015-03-12 14:51 ` Jan Beulich
2015-03-12 15:52 ` Dario Faggioli
2015-03-13 11:15 ` George Dunlap [this message]
2015-03-12 14:52 ` George Dunlap
2015-03-12 15:56 ` Dario Faggioli
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=5502C6BB.7090207@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=George.Dunlap@citrix.com \
--cc=JBeulich@suse.com \
--cc=JGross@suse.com \
--cc=dario.faggioli@citrix.com \
--cc=jtweaver@hawaii.edu \
--cc=keir.xen@gmail.com \
--cc=xen-devel@lists.xen.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.