All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vrabel <david.vrabel@citrix.com>
To: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [PATCH] xen: resume console a bit later
Date: Thu, 3 Jul 2014 11:12:33 +0100	[thread overview]
Message-ID: <53B52C91.3050204@citrix.com> (raw)
In-Reply-To: <53B43A27.3070007@oracle.com>

On 02/07/14 17:58, Boris Ostrovsky wrote:
> 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.

It occurs to me that this warning isn't harmless.  Whilst the device
power management will ensure no driver is playing with irqs, a userspace
process might be using the evtchn device.

I've updated the commit message to:

    xen/manage: fix potential deadlock when resuming the console

    Calling xen_console_resume() in xen_suspend() causes a warning
    because it locks irq_mapping_update_lock (a mutex) and this may
    sleep.  If a userspace process is using the evtchn device then
    this mutex may be locked at the point of the stop_machine() call and
    xen_console_resume() would then deadlock.

    Resuming the console after stop_machine() returns avoids this
    deadlock.

And tagged for stable and applied to stable/for-linus-3.6

David

      reply	other threads:[~2014-07-03 10:12 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
2014-07-03 10:12   ` David Vrabel [this message]

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