diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2012-03-27 00:46:52 +0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-03-27 00:46:52 +0400 |
commit | f2791d733a2f06997b573d1a3cfde21e6f529826 (patch) | |
tree | 2af5d3beba35cb4b5a945f148e0a24bbda0ed86f /Documentation | |
parent | e22057c8599373e5caef0bc42bdb95d2a361ab0d (diff) | |
download | linux-f2791d733a2f06997b573d1a3cfde21e6f529826.tar.xz |
PM / Runtime: don't forget to wake up waitqueue on failure
This patch (as1535) fixes a bug in the runtime PM core. When a
runtime suspend attempt completes, whether successfully or not, the
device's power.wait_queue is supposed to be signalled. But this
doesn't happen in the failure pathway of rpm_suspend() when another
autosuspend attempt is rescheduled. As a result, a task can get stuck
indefinitely on the wait queue (I have seen this happen in testing).
The patch fixes the problem by moving the wake_up_all() call up near
the start of the failure code.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions