Skip to content

Commit 0fc542b

Browse files
tehcastertorvalds
authored andcommitted
mm, page_ext: periodically reschedule during page_ext_init()
page_ext_init() can take long on large machines, so add a cond_resched() point after each section is processed. This will allow moving the init to a later point at boot without triggering lockup reports. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Vlastimil Babka <[email protected]> Acked-by: Michal Hocko <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Yang Shi <[email protected]> Cc: Laura Abbott <[email protected]> Cc: Vinayak Menon <[email protected]> Cc: zhong jiang <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent dab4ead commit 0fc542b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mm/page_ext.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ void __init page_ext_init(void)
406406
continue;
407407
if (init_section_page_ext(pfn, nid))
408408
goto oom;
409+
cond_resched();
409410
}
410411
}
411412
hotplug_memory_notifier(page_ext_callback, 0);

0 commit comments

Comments
 (0)