summaryrefslogtreecommitdiffstats
path: root/Kconfig
diff options
context:
space:
mode:
authorHugh Dickins2015-02-13 00:00:28 +0100
committerLinus Torvalds2015-02-13 03:54:11 +0100
commitff59909a077b3c51c168cb658601c6b63136a347 (patch)
treefdd8e3279f54c3458789592306b93bcb637cef8e /Kconfig
parentmm: hwpoison: drop lru_add_drain_all() in __soft_offline_page() (diff)
downloadkernel-qcow2-linux-ff59909a077b3c51c168cb658601c6b63136a347.tar.gz
kernel-qcow2-linux-ff59909a077b3c51c168cb658601c6b63136a347.tar.xz
kernel-qcow2-linux-ff59909a077b3c51c168cb658601c6b63136a347.zip
mm: fix negative nr_isolated counts
The vmstat interfaces are good at hiding negative counts (at least when CONFIG_SMP); but if you peer behind the curtain, you find that nr_isolated_anon and nr_isolated_file soon go negative, and grow ever more negative: so they can absorb larger and larger numbers of isolated pages, yet still appear to be zero. I'm happy to avoid a congestion_wait() when too_many_isolated() myself; but I guess it's there for a good reason, in which case we ought to get too_many_isolated() working again. The imbalance comes from isolate_migratepages()'s ISOLATE_ABORT case: putback_movable_pages() decrements the NR_ISOLATED counts, but we forgot to call acct_isolated() to increment them. It is possible that the bug whcih this patch fixes could cause OOM kills when the system still has a lot of reclaimable page cache. Fixes: edc2ca612496 ("mm, compaction: move pageblock checks up from isolate_migratepages_range()") Signed-off-by: Hugh Dickins <hughd@google.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: <stable@vger.kernel.org> [3.18+] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions