Skip to content

Commit

Permalink
Freezer: Fix JFFS2 garbage collector freezing issue (rev. 2)
Browse files Browse the repository at this point in the history
Fix breakage caused by commit d5d8c59
"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 <rjw@sisk.pl>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Pete MacKay <armlinux@architechnical.net>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Rafael J. Wysocki authored and Len Brown committed Dec 4, 2007
1 parent 561d9a9 commit e136e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jffs2/background.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e136e76

Please sign in to comment.