From: Rafael J. Wysocki Date: Tue, 4 Dec 2007 00:11:09 +0000 (+0100) Subject: Freezer: Fix JFFS2 garbage collector freezing issue (rev. 2) X-Git-Tag: v2.6.24-rc5~56^2~2^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e136e769d471e7f3d24a8f6bf9c91dcb372bd0ab;p=linux-2.6 Freezer: Fix JFFS2 garbage collector freezing issue (rev. 2) Fix breakage caused by commit d5d8c5976d6adeddb8208c240460411e2198b393 "freezer: do not send signals to kernel threads" in jffs2_garbage_collect_thread() that assumed it would be sent signals by the freezer. Signed-off-by: Rafael J. Wysocki Cc: David Woodhouse Cc: Pete MacKay Signed-off-by: Len Brown --- diff --git a/fs/jffs2/background.c b/fs/jffs2/background.c index d568ae8467..8adebd3e43 100644 --- a/fs/jffs2/background.c +++ b/fs/jffs2/background.c @@ -105,7 +105,7 @@ static int jffs2_garbage_collect_thread(void *_c) /* Put_super will send a SIGKILL and then wait on the sem. */ - while (signal_pending(current)) { + while (signal_pending(current) || freezing(current)) { siginfo_t info; unsigned long signr;