]> git.baikalelectronics.ru Git - kernel.git/commit
mm/debug_pagealloc: ask users for default setting of debug_pagealloc
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 15 Mar 2016 21:55:30 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commit0afdb726782a982e2597c8d6363de500990aeeb7
tree17bca7cd84bf6f9782c81c3a8d8b4ebe5e851b01
parent81e4df9e3cb1d2b06f9f5e32644e4a9e82548f51
mm/debug_pagealloc: ask users for default setting of debug_pagealloc

Since commit 3f15660dad9f3 ("mm/debug-pagealloc: make debug-pagealloc
boottime configurable") CONFIG_DEBUG_PAGEALLOC is by default not adding
any page debugging.

This resulted in several unnoticed bugs, e.g.

    https://lkml.kernel.org/g/<569F5E29.3090107@de.ibm.com>
or
    https://lkml.kernel.org/g/<56A20F30.4050705@de.ibm.com>

as this behaviour change was not even documented in Kconfig.

Let's provide a new Kconfig symbol that allows to change the default
back to enabled, e.g.  for debug kernels.  This also makes the change
obvious to kernel packagers.

Let's also change the Kconfig description for CONFIG_DEBUG_PAGEALLOC, to
indicate that there are two stages of overhead.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/Kconfig.debug
mm/page_alloc.c