From: Nigel Cunningham Date: Wed, 27 Jul 2005 18:43:36 +0000 (-0700) Subject: [PATCH] Fix missing refrigerator invocation in jffs2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef2a701d444a4ea9790146e92756b0dde5070a15;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] Fix missing refrigerator invocation in jffs2 Here's a patch to fix a missing refrigerator call in jffs2. Signed-off-by: Nigel Cunningham Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/jffs/intrep.c b/fs/jffs/intrep.c index fc589ddd0762..456d7e6e29c2 100644 --- a/fs/jffs/intrep.c +++ b/fs/jffs/intrep.c @@ -3397,6 +3397,9 @@ jffs_garbage_collect_thread(void *ptr) siginfo_t info; unsigned long signr = 0; + if (try_to_freeze()) + continue; + spin_lock_irq(¤t->sighand->siglock); signr = dequeue_signal(current, ¤t->blocked, &info); spin_unlock_irq(¤t->sighand->siglock);