All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: "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: Thu, 12 Mar 2015 15:52:38 +0000	[thread overview]
Message-ID: <1426175556.7023.41.camel@citrix.com> (raw)
In-Reply-To: <5501B5F80200007800069268@mail.emea.novell.com>


[-- Attachment #1.1: Type: text/plain, Size: 1791 bytes --]

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:

<<Change 93be8285 ("update domU's node-affinity on the
cpupool_unassign_cpu() path") is wrong. In fact, as a consequence of it,
domains' node affinity is updated twice when a pCPU is removed from a
cpupool. It seemed necessary to add such call in cpupool_unassign_cpu(),
for symmetry with its _assign_ counterpart, but it went unnoticed that
the update was already being performed, in cpu_disable_scheduler().

Besides being conceptually wrong, it causes issues, in the form of an
ASSERT() that triggers, in debug builds.

For these reasons, 93be8285 really needs to be undone.>>

Was it something like this you were after? If not, please advise
further... And sorry for the whole thing! :-/

Regards,
Dario

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2015-03-12 15:52 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 [this message]
2015-03-13 11:15           ` George Dunlap
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=1426175556.7023.41.camel@citrix.com \
    --to=dario.faggioli@citrix.com \
    --cc=George.Dunlap@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=JGross@suse.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.