• Linus Torvalds's avatar
    Revert "mm: avoid waking kswapd for THP allocations when compaction is deferred or contended" · 31f8d42d
    Linus Torvalds authored
    This reverts commit 782fd304.
    
    We are going to reinstate the __GFP_NO_KSWAPD flag that has been
    removed, the removal reverted, and then removed again.  Making this
    commit a pointless fixup for a problem that was caused by the removal of
    __GFP_NO_KSWAPD flag.
    
    The thing is, we really don't want to wake up kswapd for THP allocations
    (because they fail quite commonly under any kind of memory pressure,
    including when there is tons of memory free), and these patches were
    just trying to fix up the underlying bug: the original removal of
    __GFP_NO_KSWAPD in commit c6543459 ("mm: remove __GFP_NO_KSWAPD")
    was simply bogus.
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    31f8d42d
page_alloc.c 168 KB