Freezer: make kernel threads nonfreezable by default
[safe/jmp/linux-2.6] / mm / pdflush.c
index 8ce0900..8f6ee07 100644 (file)
@@ -92,6 +92,7 @@ struct pdflush_work {
 static int __pdflush(struct pdflush_work *my_work)
 {
        current->flags |= PF_FLUSHER | PF_SWAPWRITE;
+       set_freezable();
        my_work->fn = NULL;
        my_work->who = current;
        INIT_LIST_HEAD(&my_work->list);