Commit 0fc542b7 authored by Vlastimil Babka's avatar Vlastimil Babka Committed by Linus Torvalds

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: default avatarVlastimil Babka <>
Acked-by: default avatarMichal Hocko <>
Cc: Joonsoo Kim <>
Cc: Mel Gorman <>
Cc: Yang Shi <>
Cc: Laura Abbott <>
Cc: Vinayak Menon <>
Cc: zhong jiang <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent dab4ead1
......@@ -406,6 +406,7 @@ void __init page_ext_init(void)
if (init_section_page_ext(pfn, nid))
goto oom;
hotplug_memory_notifier(page_ext_callback, 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment