Re: [PATCH] mm/mempool: use static key for boot-time debug enablement
From: Andrew Morton
Date: Wed May 27 2026 - 16:07:41 EST
On Wed, 27 May 2026 06:46:34 -0400 lirongqing <lirongqing@xxxxxxxxx> wrote:
> Replace the #ifdef CONFIG_SLUB_DEBUG_ON conditional compilation with a
> static key (mempool_debug_enabled). This allows enabling mempool debugging
> at boot time via:
>
> mempool_debug
>
> Instead of requiring CONFIG_SLUB_DEBUG_ON at compile time. Benefits:
Sashiko is suggesting that we use mempool_debug=<...> here. Which permits
mempool_debug=n if for some reason the kernel is defaulting to "on". Which
we might choose to do in the future. I think that's a little better - do others agree?
Same goes for the new dmapool_debug.
Sashiko asked a second question:
https://sashiko.dev/#/patchset/20260527104634.2434-1-lirongqing@xxxxxxxxx