Skip to contentSkip to conversation

mm-thp-introduce-folio_split_queue_lock-and-its-variants.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Nov 24, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: thp: introduce folio_split_queue_lock and its variants
has been removed from the -mm tree. Its filename was
mm-thp-introduce-folio_split_queue_lock-and-its-variants.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: Muchun Song <[email protected]>
Subject: mm: thp: introduce folio_split_queue_lock and its variants
Date: Mon, 10 Nov 2025 16:17:56 +0800

In future memcg removal, the binding between a folio and a memcg may change, making the split lock within the memcg unstable when held.

A new approach is required to reparent the split queue to its parent. This patch starts introducing a unified way to acquire the split lock for future work.

It's a code-only refactoring with no functional changes.

---

 include/linux/memcontrol.h |   10 ++
 mm/huge_memory.c           |  119 ++++++++++++++++++++++++-----------
 2 files changed, 94 insertions(+), 35 deletions(-)
include/linux/memcontrol.h renamed from include/linux/memcontrol.h~mm-thp-introduce-folio_split_queue_lock-and-its-variants +10 -0
@@ -1647,6 +1647,11 @@ int alloc_shrinker_info(struct mem_cgrou
 void free_shrinker_info(struct mem_cgroup *memcg);
 void set_shrinker_bit(struct mem_cgroup *memcg, int nid, int shrinker_id);
 void reparent_shrinker_deferred(struct mem_cgroup *memcg);
+
+static inline int shrinker_id(struct shrinker *shrinker)
+{
+	return shrinker->id;
+}
 #else
 #define mem_cgroup_sockets_enabled 0
 
@@ -1678,6 +1683,11 @@ static inline void set_shrinker_bit(stru
 				    int nid, int shrinker_id)
 {
 }
+
+static inline int shrinker_id(struct shrinker *shrinker)
+{
+	return -1;
+}
 #endif
 
 #ifdef CONFIG_MEMCG
mm/huge_memory.c renamed from mm/huge_memory.c~mm-thp-introduce-folio_split_queue_lock-and-its-variants +84 -35

213 lines not on this page · raw message

_

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