mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
mm: disable DEFERRED_STRUCT_PAGE_INIT on !NO_BOOTMEM
When we have !NO_BOOTMEM, the deferred page struct initialization doesn't work well because the pages reserved in bootmem are released to the page allocator uncoditionally. It causes memory corruption and system crash eventually. As Mel suggested, the bootmem is retiring slowly. We fix the issue by simply hiding DEFERRED_STRUCT_PAGE_INIT when bootmem is enabled. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Gavin Shan <[email protected]> Acked-by: Mel Gorman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7cf7806ce1
commit
11e685672a
1 changed files with 1 additions and 1 deletions
|
|
@ -648,7 +648,7 @@ config DEFERRED_STRUCT_PAGE_INIT
|
|||
bool "Defer initialisation of struct pages to kthreads"
|
||||
default n
|
||||
depends on ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT
|
||||
depends on MEMORY_HOTPLUG
|
||||
depends on NO_BOOTMEM && MEMORY_HOTPLUG
|
||||
depends on !FLATMEM
|
||||
help
|
||||
Ordinarily all struct pages are initialised during early boot in a
|
||||
|
|
|
|||
Loading…
Reference in a new issue