All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Juergen Gross <jgross@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
	Wei Liu <wei.liu2@citrix.com>,
	George Dunlap <George.Dunlap@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Dario Faggioli <dfaggioli@suse.com>,
	Julien Grall <julien.grall@arm.com>,
	xen-devel <xen-devel@lists.xenproject.org>,
	Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH v3 1/6] xen/sched: call cpu_disable_scheduler() via cpu notifier
Date: Tue, 02 Apr 2019 05:54:17 -0600	[thread overview]
Message-ID: <5CA34D690200007800223DF4@prv1-mh.provo.novell.com> (raw)
In-Reply-To: <20190402053457.24912-2-jgross@suse.com>

>>> On 02.04.19 at 07:34, <jgross@suse.com> wrote:
> cpu_disable_scheduler() is being called from __cpu_disable() today.
> There is no need to execute it on the cpu just being disabled, so use
> the CPU_DEAD case of the cpu notifier chain. Moving the call out of
> stop_machine() context is fine, as we just need to hold the domain RCU
> lock and need the scheduler percpu data to be still allocated.
> 
> Add another hook for CPU_DOWN_PREPARE to bail out early in case
> cpu_disable_scheduler() would fail. This will avoid crashes in rare
> cases for cpu hotplug or suspend.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>
> Reviewed-by: Dario Faggioli <dfaggioli@suse.com>

Acked-by: Jan Beulich <jbeulich@suse.com>



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2019-04-02 11:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-02  5:34 [PATCH v3 0/6] xen: simplify suspend/resume handling Juergen Gross
2019-04-02  5:34 ` [PATCH v3 1/6] xen/sched: call cpu_disable_scheduler() via cpu notifier Juergen Gross
2019-04-02  9:54   ` Julien Grall
2019-04-02 11:54   ` Jan Beulich [this message]
2019-04-02  5:34 ` [PATCH v3 2/6] xen: add helper for calling notifier_call_chain() to common/cpu.c Juergen Gross
2019-04-02 11:54   ` Jan Beulich
2019-04-02  5:34 ` [PATCH v3 3/6] xen: add new cpu notifier action CPU_RESUME_FAILED Juergen Gross
2019-04-02  5:34 ` [PATCH v3 4/6] xen: don't free percpu areas during suspend Juergen Gross
2019-04-02 11:57   ` Jan Beulich
2019-04-02 12:26     ` Juergen Gross
2019-04-02  5:34 ` [PATCH v3 5/6] xen/cpupool: simplify suspend/resume handling Juergen Gross
2019-04-02  5:34 ` [PATCH v3 6/6] xen/sched: don't disable scheduler on cpus during suspend Juergen Gross
2019-04-02 15:47 ` [PATCH v3 0/6] xen: simplify suspend/resume handling Andrew Cooper

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=5CA34D690200007800223DF4@prv1-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dfaggioli@suse.com \
    --cc=jgross@suse.com \
    --cc=julien.grall@arm.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=wei.liu2@citrix.com \
    --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.