[merged mm-stable] mm-vmstat-avoid-taking-zone-lock-in-proc-buddyinfo-reads.patch removed from -mm tree

Andrew Morton <[email protected]> Tue, 28 Jul 2026 21:15:07 -0700
Newsgroups org.kernel.vger.mm-commits
Message-ID <[email protected]>
The quilt patch titled
     Subject: mm/vmstat: avoid taking zone lock in /proc/buddyinfo reads
has been removed from the -mm tree.  Its filename was
     mm-vmstat-avoid-taking-zone-lock-in-proc-buddyinfo-reads.patch

This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Imran Khan <[email protected]>
Subject: mm/vmstat: avoid taking zone lock in /proc/buddyinfo reads
Date: Thu, 4 Jun 2026 21:42:45 +0800

frag_show_print() just reads zone->free_area[order].nr_free, so it can
safely do this without needing the zone->lock.

Pass nolock=true from frag_show(), so that walk_zones_in_node() can skip
the zone->lock acquisition.

Link: https://lore.kernel.org/[email protected]
Signed-off-by: Imran Khan <[email protected]>
Reviewed-by: Joshua Hahn <[email protected]>
Acked-by: Vlastimil Babka (SUSE) <[email protected]>
Reviewed-by: Lorenzo Stoakes <[email protected]>
Acked-by: David Hildenbrand (Arm) <[email protected]>
Cc: Liam R. Howlett <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---

 mm/vmstat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/vmstat.c~mm-vmstat-avoid-taking-zone-lock-in-proc-buddyinfo-reads
+++ a/mm/vmstat.c
@@ -1568,7 +1568,7 @@ static void frag_show_print(struct seq_f
 static int frag_show(struct seq_file *m, void *arg)
 {
 	pg_data_t *pgdat = (pg_data_t *)arg;
-	walk_zones_in_node(m, pgdat, true, false, frag_show_print);
+	walk_zones_in_node(m, pgdat, true, true, frag_show_print);
 	return 0;
 }
 
_

Patches currently in -mm which might be from [email protected] are