On Sun, May 22, 2022 at 12:54:04PM -0400, Zi Yan wrote: > Can you try the patch below on top of linux-next to see if it fixes the infinite loop issue? > Thanks. > > 1. split_free_page() change is irrelevant but to make the code more robust. > 2. using set_migratetype_isolate() in isolate_single_pageblock() is to properly mark the pageblock > MIGRATE_ISOLATE. > 3. setting to-be-migrated page's pageblock to MIGRATE_ISOLATE is to avoid a possible race > that another thread might take the free page after migration. > 4. off-by-one fix and no retry if free page is not found after migration like I added before. Cool. I'll be running it this week and report back next week.