All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@suse.de>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Linux-pm mailing list <linux-pm@lists.linux-foundation.org>,
	Kevin Hilman <khilman@deeprootsystems.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Alan Stern <stern@rowland.harvard.edu>,
	Colin Cross <ccross@android.com>
Subject: Re: [PATCH 2/2] PM: Fix potential issue with failing asynchronous suspend
Date: Mon, 20 Sep 2010 11:59:29 -0700	[thread overview]
Message-ID: <20100920185929.GB29380@suse.de> (raw)
In-Reply-To: <201009202000.45147.rjw@sisk.pl>

On Mon, Sep 20, 2010 at 08:00:44PM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rjw@sisk.pl>
> Subject: PM: Fix potential issue with failing asynchronous suspend
> 
> There is a potential issue with the asynchronous suspend code that
> a device driver suspending asynchronously may not notice that it
> should back off.  There are two failing scenarions, (1) when the
> driver is waiting for a driver suspending synchronously to complete
> and that second driver returns error code, in which case async_error
> won't be set and the waiting driver will continue suspending and (2)
> after the driver has called device_pm_wait_for_dev() and the waited
> for driver returns error code, in which case the caller of
> device_pm_wait_for_dev() will not know that there was an error and
> will continue suspending.
> 
> To fix this issue make __device_suspend() set async_error, so
> async_suspend() doesn't need to set it any more, and make
> device_pm_wait_for_dev() return async_error, so that its callers
> can check whether or not they should continue suspending.
> 
> No more changes are necessary, since device_pm_wait_for_dev() in
> not used by any drivers' suspend routines.
> 
> Reported-by: Colin Cross <ccross@android.com>
> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>

  reply	other threads:[~2010-09-20 19:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-20 17:57 [PATCH 0/2] PM: Wakeup sources and async suspend error path bug fix Rafael J. Wysocki
2010-09-20 17:59 ` [PATCH 1/2] PM / Wakeup: Introduce wakeup source objects and event statistics (v3) Rafael J. Wysocki
2010-09-20 18:59   ` Greg KH
2010-09-20 18:59   ` Greg KH
2010-09-20 17:59 ` Rafael J. Wysocki
2010-09-20 18:00 ` [PATCH 2/2] PM: Fix potential issue with failing asynchronous suspend Rafael J. Wysocki
2010-09-20 18:59   ` Greg KH [this message]
2010-09-20 18:59   ` Greg KH
2010-09-20 18:00 ` Rafael J. Wysocki
2010-09-22 23:00 ` [PATCH 0/2] PM: Wakeup sources and async suspend error path bug fix Rafael J. Wysocki
2010-09-22 23:00 ` Rafael J. Wysocki
2010-10-03 22:04 ` mark gross
2010-10-03 22:04 ` [linux-pm] " mark gross
2010-10-03 23:04   ` Rafael J. Wysocki
2010-10-04  3:29     ` mark gross
2010-10-04  3:29     ` [linux-pm] " mark gross
2010-10-04 20:30       ` Rafael J. Wysocki
2010-10-04 20:30       ` [linux-pm] " Rafael J. Wysocki
2010-10-03 23:04   ` Rafael J. Wysocki

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=20100920185929.GB29380@suse.de \
    --to=gregkh@suse.de \
    --cc=ccross@android.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=rjw@sisk.pl \
    --cc=stern@rowland.harvard.edu \
    /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.