]> git.baikalelectronics.ru Git - kernel.git/commit
mm: disable DEFERRED_STRUCT_PAGE_INIT on !NO_BOOTMEM
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Fri, 27 May 2016 21:27:49 +0000 (14:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2016 21:49:37 +0000 (14:49 -0700)
commit0414d072a206c552fe179ec6acfb28612ab2bd55
tree4850c18e2655f5f8395be6764e2924c08a91c733
parentf80cdc124ccb36056b2a585e8ce3bbb256a1ade6
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/1460602170-5821-1-git-send-email-gwshan@linux.vnet.ibm.com
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/Kconfig