Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1403979

[PATCH] mm: move page_ext_init after all struct pages are initialized

From Yang Shi <yang.shi@linaro.org>
Newsgroups linux.kernel
Subject [PATCH] mm: move page_ext_init after all struct pages are initialized
Date 2016-05-20 00:00 +0200
Message-ID <rAE93-5ko-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


When DEFERRED_STRUCT_PAGE_INIT is enabled, just a subset of memmap at boot
are initialized, then the rest are initialized in parallel by starting one-off
"pgdatinitX" kernel thread for each node X.

If page_ext_init is called before it, some pages will not have valid extension,
so move page_ext_init() after it.

CC: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Yang Shi <yang.shi@linaro.org>
---
 init/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/init/main.c b/init/main.c
index b3c6e36..2075faf 100644
--- a/init/main.c
+++ b/init/main.c
@@ -606,7 +606,6 @@ asmlinkage __visible void __init start_kernel(void)
 		initrd_start = 0;
 	}
 #endif
-	page_ext_init();
 	debug_objects_mem_init();
 	kmemleak_init();
 	setup_per_cpu_pageset();
@@ -1004,6 +1003,8 @@ static noinline void __init kernel_init_freeable(void)
 	sched_init_smp();
 
 	page_alloc_init_late();
+	/* Initialize page ext after all struct pages are initializaed */
+	page_ext_init();
 
 	do_basic_setup();
 
-- 
2.0.2

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] mm: move page_ext_init after all struct pages are initialized Yang Shi <yang.shi@linaro.org> - 2016-05-20 00:00 +0200
  Re: [PATCH] mm: move page_ext_init after all struct pages are  initialized Andrew Morton <akpm@linux-foundation.org> - 2016-05-20 00:40 +0200
    Re: [PATCH] mm: move page_ext_init after all struct pages are  initialized "Shi, Yang" <yang.shi@linaro.org> - 2016-05-20 00:40 +0200
      Re: [PATCH] mm: move page_ext_init after all struct pages are  initialized Andrew Morton <akpm@linux-foundation.org> - 2016-05-20 01:30 +0200
        Re: [PATCH] mm: move page_ext_init after all struct pages are  initialized "Shi, Yang" <yang.shi@linaro.org> - 2016-05-20 01:30 +0200

csiph-web