]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Fix missing refrigerator invocation in jffs2
authorNigel Cunningham <ncunningham@cyclades.com>
Wed, 27 Jul 2005 18:43:36 +0000 (11:43 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 27 Jul 2005 23:25:49 +0000 (16:25 -0700)
Here's a patch to fix a missing refrigerator call in jffs2.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/jffs/intrep.c

index fc589ddd0762d6491a3ab7d151c760a36e6d08d1..456d7e6e29c2683bd2fc4724b7980cb81171bfff 100644 (file)
@@ -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(&current->sighand->siglock);
                        signr = dequeue_signal(current, &current->blocked, &info);
                        spin_unlock_irq(&current->sighand->siglock);