]> 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)
commitd0e6372ad41f5de1269d47d326469b34c73f20bb
treeecb5b522d62a4ffbe8b1511baade7e7120a3d8c5
parentc04b7725718e93cd291b46203a8bb8e3ec9663da
Revert "mm: avoid waking kswapd for THP allocations when compaction is deferred or contended"

This reverts commit 2eed8cf4be2ff884291f660c5d02e27766586a1d.

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

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