sched: clean up __pick_last_entity() a bit
[sfrench/cifs-2.6.git] / mm / pdflush.c
index b02102feeb4be03d346583f2c81c8e7aba4e3ed8..8f6ee073c0e3f44a14a40fe1351006b1246e4523 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/writeback.h>   // Prototypes pdflush_operation()
 #include <linux/kthread.h>
 #include <linux/cpuset.h>
+#include <linux/freezer.h>
 
 
 /*
@@ -91,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);