All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: David Vrabel <david.vrabel@citrix.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [PATCH] xen: resume console a bit later
Date: Wed, 02 Jul 2014 12:58:15 -0400	[thread overview]
Message-ID: <53B43A27.3070007@oracle.com> (raw)
In-Reply-To: <1404318919-28626-1-git-send-email-david.vrabel@citrix.com>

On 07/02/2014 12:35 PM, David Vrabel wrote:
> Calling xen_console_resume() in xen_suspend() causes a (harmless)
> warning because it calls a function that might sleep.
>
> Resuming the console after the stop_machine() call returns avoids this
> warning.
>
> Signed-off-by: David Vrabel <david.vrabel@citrix.com>

Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>


> ---
>   drivers/xen/manage.c |    5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
> index c3667b2..5f1e1f3 100644
> --- a/drivers/xen/manage.c
> +++ b/drivers/xen/manage.c
> @@ -88,7 +88,6 @@ static int xen_suspend(void *data)
>   
>   	if (!si->cancelled) {
>   		xen_irq_resume();
> -		xen_console_resume();
>   		xen_timer_resume();
>   	}
>   
> @@ -135,6 +134,10 @@ static void do_suspend(void)
>   
>   	err = stop_machine(xen_suspend, &si, cpumask_of(0));
>   
> +	/* Resume console as early as possible. */
> +	if (!si.cancelled)
> +		xen_console_resume();
> +
>   	raw_notifier_call_chain(&xen_resume_notifier, 0, NULL);
>   
>   	dpm_resume_start(si.cancelled ? PMSG_THAW : PMSG_RESTORE);

  reply	other threads:[~2014-07-02 16:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-02 16:35 [PATCH] xen: resume console a bit later David Vrabel
2014-07-02 16:58 ` Boris Ostrovsky [this message]
2014-07-03 10:12   ` David Vrabel

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=53B43A27.3070007@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=david.vrabel@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.