summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2026-06-04 19:03:18 +0800
committerVlastimil Babka (SUSE) <vbabka@kernel.org>2026-07-08 18:31:27 +0200
commita561e19e76ef1ebf3f9a56977dfe87526b37146c (patch)
treedfaa35093c71dc4e4d662c358f1c44244770b4da /scripts/stackusage
parent29b3b6cde5f2dee1c51a1c03ba2e0015e205125b (diff)
downloadlinux-next-a561e19e76ef1ebf3f9a56977dfe87526b37146c.tar.gz
linux-next-a561e19e76ef1ebf3f9a56977dfe87526b37146c.zip
mm/mempool: Untangle CONFIG_SLUB_DEBUG_ON abuse and switch to static key
The mempool subsystem historically wrapped its debugging logic inside an merely defines compile-time defaults for SLUB and caused two flaws: 1. On production kernels where CONFIG_SLUB_DEBUG=y but CONFIG_SLUB_DEBUG_ON=n, mempool debugging was completely compiled out at compile time. 2. On kernels with CONFIG_SLUB_DEBUG_ON=y, mempool debugging stayed active even if a user explicitly disabled slub debugging at boot time. Clean up this mess by removing the #ifdef and switching to a runtime static key (mempool_debug_enabled), allowing mempool debugging to be toggled cleanly via its own boot parameter. Suggested-by: Vlastimil Babka (SUSE) <vbabka@kernel.org> Signed-off-by: Li RongQing <lirongqing@baidu.com> Cc: Vlastimil Babka <vbabka@kernel.org> Cc: Harry Yoo <harry@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Hao Li <hao.li@linux.dev> Cc: Christoph Lameter <cl@gentwo.org> Cc: David Rientjes <rientjes@google.com> Cc: Roman Gushchin <roman.gushchin@linux.dev> Cc: Matthew Wilcox <willy@infradead.org> Cc: Usama Arif <usama.arif@linux.dev> Reviewed-by: SeongJae Park <sj@kernel.org> Reviewed-by: Harry Yoo (Oracle) <harry@kernel.org> Link: https://patch.msgid.link/20260604110318.2089-1-lirongqing@baidu.com Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions