From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-pm <linux-pm@lists.osdl.org>
Subject: Re: hibernate fails to freeze tasks
Date: Tue, 23 Oct 2007 00:36:37 +0200 [thread overview]
Message-ID: <200710230036.37838.rjw@sisk.pl> (raw)
In-Reply-To: <1193062945.9793.15.camel@johannes.berg>
On Monday, 22 October 2007 16:22, Johannes Berg wrote:
> On my quad powermac, with a current git snapshot, hibernating fails to
> freeze tasks and then dumps me a snapshot of the tasks. I've uploaded it
> here because it's so long:
> http://johannes.sipsolutions.net/files/quad-syslog-hibernate-fails
>
> Haven't found time to look into it yet, any ideas are appreciated.
Please try the patch below.
---
From: Rafael J. Wysocki <rjw@sisk.pl>
Do not allow processes to clear their TIF_SIGPENDING if TIF_FREEZE is set,
so that they will not race with the freezer (like mysqld, for example).
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
kernel/signal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.23/kernel/signal.c
===================================================================
--- linux-2.6.23.orig/kernel/signal.c
+++ linux-2.6.23/kernel/signal.c
@@ -124,7 +124,7 @@ void recalc_sigpending_and_wake(struct t
void recalc_sigpending(void)
{
- if (!recalc_sigpending_tsk(current))
+ if (!recalc_sigpending_tsk(current) && !freezing(current))
clear_thread_flag(TIF_SIGPENDING);
}
next prev parent reply other threads:[~2007-10-22 22:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-22 14:22 hibernate fails to freeze tasks Johannes Berg
2007-10-22 22:36 ` Rafael J. Wysocki [this message]
2007-10-23 12:34 ` Johannes Berg
2007-10-23 4:17 ` Alan Stern
2007-10-23 10:06 ` Johannes Berg
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=200710230036.37838.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=johannes@sipsolutions.net \
--cc=linux-pm@lists.osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox