Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: page-isolation: skip isolated pageblock in start_isolate_page_ran…
…ge() start_isolate_page_range() first isolates the first and the last pageblocks in the range and ensure pages across range boundaries are split during isolation. But it missed the case when the range is <= a pageblock and the first and the last pageblocks are the same one, so the second isolate_single_pageblock() will always fail. To fix it, skip the pageblock isolation in second isolate_single_pageblock(). Link: https://lkml.kernel.org/r/[email protected] Fixes: 88ee134 ("mm: fix a potential infinite loop in start_isolate_page_range()") Signed-off-by: Zi Yan <[email protected]> Reported-by: Marek Szyprowski <[email protected]> Tested-by: Marek Szyprowski <[email protected]> Link: https://lore.kernel.org/linux-mm/[email protected]/ Reported-by: Michael Walle <[email protected]> Tested-by: Michael Walle <[email protected]> Link: https://lore.kernel.org/linux-mm/[email protected]/ Cc: Christophe Leroy <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Doug Berger <[email protected]> Cc: Eric Ren <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Oscar Salvador <[email protected]> Cc: Qian Cai <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information