Re: [PATCH 0/4] mm/mprotect: micro-optimization work
From: Andrew Morton
Date: Thu Mar 19 2026 - 22:42:47 EST
On Thu, 19 Mar 2026 18:31:04 +0000 Pedro Falcato <pfalcato@xxxxxxx> wrote:
> After a long session of performance-cat herding, here's the first version
> I am relatively ok with.
>
> Micro-optimize the change_protection functionality and the
> change_pte_range() routine. This set of functions works in an incredibly
> tight loop, and even small inefficiencies are incredibly evident when spun
> hundreds, thousands or hundreds of thousands of times.
AI review has questions:
https://sashiko.dev/#/patchset/20260319183108.1105090-1-pfalcato%40suse.de