]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mm: avoid waking kswapd for THP allocations when compaction is deferred or...
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 Dec 2012 18:47:45 +0000 (10:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 Dec 2012 18:47:45 +0000 (10:47 -0800)
commit055428e8026ba3b541bf1f6250b7c953c9320304
treeecb5b522d62a4ffbe8b1511baade7e7120a3d8c5
parent6f1fb88ee7f8adc57d55ffe96d76af1872c09d32
Revert "mm: avoid waking kswapd for THP allocations when compaction is deferred or contended"

This reverts commit 703cd194fd46fd255040f37e91244dcbef5087de.

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 160e69ee6b40 ("mm: remove __GFP_NO_KSWAPD")
was simply bogus.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c