The patch titled Subject: mm/compaction.c: fix zoneindex in kcompactd() has been added to the -mm tree. Its filename is mm-compact-fix-zoneindex-in-compact.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-compact-fix-zoneindex-in-compact.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-compact-fix-zoneindex-in-compact.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Chen Feng <puck.chen@xxxxxxxxxxxxx> Subject: mm/compaction.c: fix zoneindex in kcompactd() While testing the kcompactd in my platform 3G MEM only DMA ZONE. I found the kcompactd never wakeup. It seems the zoneindex has already minus 1 before. So the traverse here should be <=. Link: http://lkml.kernel.org/r/1463659121-84124-1-git-send-email-puck.chen@xxxxxxxxxxxxx Fixes: accf62422b3a ("mm, kswapd: replace kswapd compaction with waking up kcompactd") Signed-off-by: Chen Feng <puck.chen@xxxxxxxxxxxxx> Acked-by: Vlastimil Babka <vbabka@xxxxxxx> Cc: Hugh Dickins <hughd@xxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Cc: Johannes Weiner <hannes@xxxxxxxxxxx> Cc: Tejun Heo <tj@xxxxxxxxxx> Cc: Zhuangluan Su <suzhuangluan@xxxxxxxxxxxxx> Cc: Yiping Xu <xuyiping@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/compaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/compaction.c~mm-compact-fix-zoneindex-in-compact mm/compaction.c --- a/mm/compaction.c~mm-compact-fix-zoneindex-in-compact +++ a/mm/compaction.c @@ -1862,7 +1862,7 @@ static bool kcompactd_node_suitable(pg_d struct zone *zone; enum zone_type classzone_idx = pgdat->kcompactd_classzone_idx; - for (zoneid = 0; zoneid < classzone_idx; zoneid++) { + for (zoneid = 0; zoneid <= classzone_idx; zoneid++) { zone = &pgdat->node_zones[zoneid]; if (!populated_zone(zone)) _ Patches currently in -mm which might be from puck.chen@xxxxxxxxxxxxx are mm-compact-fix-zoneindex-in-compact.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html