[PATCH 0/3] mainline and mmotm compaction fixes

From: Vlastimil Babka
Date: Mon Apr 25 2016 - 09:36:00 EST


This was initially sent in responses to Hugh's woes [1] but looks like the
timing was unfortunate for the patches to be picked. So here's a consolidated
resent. Patch 1 is for an older bug that Hugh found when dealing with the mmotm
bugs, Patches 2 and 3 are mmotm fixes.

This doesn't address the problem 1) in Hugh's mail, which Michal Hocko also
hit recently and reminded me to check these patches' status:

> 1. Fix crash in release_pages() from compact_zone() from kcompactd_do_work():
> kcompactd needs to INIT_LIST_HEAD on the new freepages_held list.

This one should be addressed by dropping the following from mmotm from now:

mm-compaction-direct-freepage-allocation-for-async-direct-compaction.patch

As there were objections from Joonsoo and Mel that I would like to try
addressing before posting again.

[1] http://marc.info/?i=alpine.LSU.2.11.1604120005350.1832%40eggly.anvils

Hugh Dickins (2):
mm, cma: prevent nr_isolated_* counters from going negative
mm, compaction: prevent nr_isolated_* from going negative

Vlastimil Babka (1):
mm, compaction: fix crash in get_pfnblock_flags_mask() from
isolate_freepages():

mm/compaction.c | 21 +++++++--------------
1 file changed, 7 insertions(+), 14 deletions(-)

--
2.8.1