diff --git a/mm/vmscan.c b/mm/vmscan.c index d873137bf503b7..1d891f49587bc2 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -3298,7 +3298,10 @@ static int kswapd(void *p) } } + tsk->flags &= ~(PF_MEMALLOC | PF_SWAPWRITE | PF_KSWAPD); current->reclaim_state = NULL; + lockdep_clear_current_reclaim_state(); + return 0; }