Re: [PATCH] x86/mm/pat: don't gate cpa_lock on debug_pagealloc_enabled()

From: Dave Hansen

Date: Wed Jul 15 2026 - 11:09:50 EST


On 7/15/26 07:45, Mike Rapoport wrote:
> From: "Mike Rapoport (Microsoft)" <rppt@xxxxxxxxxx>
>
> Dave Hansen says:
> My only question is *why*!?!? Why add extra locking complexity and rules
> to optimize debug_pagealloc, which is already horrendously slow.
>
> Stop gating cpa_lock on debug_pagealloc_enabled() to simplify the code.

Thanks for sending this, Mike! I munged the changelog a bit and applied it.