Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <=. It fixes a regression where kswapd could previously compact, but kcompactd not. Not a crash fix though. [[email protected]: fix kcompactd_do_work() as well, per Hugh] Link: http://lkml.kernel.org/r/[email protected] Fixes: accf624 ("mm, kswapd: replace kswapd compaction with waking up kcompactd") Signed-off-by: Chen Feng <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Zhuangluan Su <[email protected]> Cc: Yiping Xu <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information