Re: [PATCH 0/2] mm: replace custom ratelimiting logic

From: Vlastimil Babka (SUSE)

Date: Mon Aug 24 2026 - 05:52:56 EST


On 8/11/26 19:21, Pedro Falcato wrote:
> The kernel has a perfectly cromulent and mostly-equivalent variant in
> lib/ratelimit.c that can be used.
>
> To: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> To: David Hildenbrand <david@xxxxxxxxxx>
> Cc: Lorenzo Stoakes <ljs@xxxxxxxxxx>
> Cc: "Liam R. Howlett" <liam@xxxxxxxxxxxxx>
> Cc: Vlastimil Babka <vbabka@xxxxxxxxxx>
> Cc: Mike Rapoport <rppt@xxxxxxxxxx>
> Cc: Suren Baghdasaryan <surenb@xxxxxxxxxx>
> Cc: Michal Hocko <mhocko@xxxxxxxx>
> Cc: Brendan Jackman <brendan.jackman@xxxxxxxxx>
> Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
> Cc: Zi Yan <ziy@xxxxxxxxxx>
> Cc: linux-mm@xxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
>
> Pedro Falcato (2):
> mm: replace custom bad page map ratelimiting logic
> mm/page_alloc: replace custom bad page ratelimiting logic

Cool!

Acked-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>

>
> mm/memory.c | 30 +++---------------------------
> mm/page_alloc.c | 28 +++++-----------------------
> 2 files changed, 8 insertions(+), 50 deletions(-)
>