x86, espfix: Make espfix64 a Kconfig option, fix UML
[pandora-kernel.git] / mm / vmscan.c
index 86eb848..ab98dc6 100644 (file)
@@ -3015,6 +3015,11 @@ static int kswapd(void *p)
                                                &balanced_classzone_idx);
                }
        }
+
+       tsk->flags &= ~(PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD);
+       current->reclaim_state = NULL;
+       lockdep_clear_current_reclaim_state();
+
        return 0;
 }