Skip to contentSkip to conversation

maple_tree-fix-handle-of-invalidated-state-in-mas_wr_store_setup.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Feb 10, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple_tree: fix handle of invalidated state in mas_wr_store_setup()
has been removed from the -mm tree. Its filename was
maple_tree-fix-handle-of-invalidated-state-in-mas_wr_store_setup.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: "Liam R. Howlett" <[email protected]>
Subject: maple_tree: fix handle of invalidated state in mas_wr_store_setup()
Date: Fri, 20 Jan 2023 11:26:06 -0500

If an invalidated maple state is encountered during write, reset the maple state to MAS_START. This will result in a re-walk of the tree to the correct location for the write.

---

 lib/maple_tree.c |    3 +++
 1 file changed, 3 insertions(+)
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-fix-handle-of-invalidated-state-in-mas_wr_store_setup +3 -0
@@ -5609,6 +5609,9 @@ static inline void mte_destroy_walk(stru
 
 static void mas_wr_store_setup(struct ma_wr_state *wr_mas)
 {
+	if (unlikely(mas_is_paused(wr_mas->mas)))
+		mas_reset(wr_mas->mas);
+
 	if (!mas_is_start(wr_mas->mas)) {
 		if (mas_is_none(wr_mas->mas)) {
 			mas_reset(wr_mas->mas);

_

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