]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/jffs2/background.c
x86: fix compile error with corruption checking disabled
[linux-2.6-omap-h63xx.git] / fs / jffs2 / background.c
index 8754b2742112f03590f3506825b1f5b82da8a974..8adebd3e43c690fbf0469cf9b235279998c252c8 100644 (file)
@@ -81,6 +81,7 @@ static int jffs2_garbage_collect_thread(void *_c)
 
        set_user_nice(current, 10);
 
+       set_freezable();
        for (;;) {
                allow_signal(SIGHUP);
        again:
@@ -104,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;