From: Nigel Cunningham Date: Wed, 27 Jul 2005 18:43:36 +0000 (-0700) Subject: [PATCH] Fix missing refrigerator invocation in jffs2 X-Git-Tag: v2.6.13-rc4~25^2~156 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ef2a701d444a4ea9790146e92756b0dde5070a15;p=linux-2.6-omap-h63xx.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 fc589ddd076..456d7e6e29c 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);