Skip to contentSkip to conversation

mm-swap-fix-wrong-plist-empty-check-in-swap_alloc_slow.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/swap: fix wrong plist empty check in swap_alloc_slow()
has been removed from the -mm tree. Its filename was
mm-swap-fix-wrong-plist-empty-check-in-swap_alloc_slow.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: Youngjun Park <[email protected]>
Subject: mm/swap: fix wrong plist empty check in swap_alloc_slow()
Date: Wed, 19 Nov 2025 20:41:36 +0900

swap_alloc_slow() was checking si->avail_list instead of next->avail_list when verifying if the next swap device is still in the list, which could cause unnecessary restarts during allocation.

Fixes 8e689f8ea45f ("mm/swap: do not choose swap device according to numa node")
Cc Barry Song <[email protected]>
Cc Chris Li <[email protected]>
Cc Kemeng Shi <[email protected]>
Cc Nhat Pham <[email protected]>

---

 mm/swapfile.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/swapfile.c renamed from mm/swapfile.c~mm-swap-fix-wrong-plist-empty-check-in-swap_alloc_slow +1 -1
@@ -1374,7 +1374,7 @@ start_over:
 		 * still in the swap_avail_head list then try it, otherwise
 		 * start over if we have not gotten any slots.
 		 */
-		if (plist_node_empty(&si->avail_list))
+		if (plist_node_empty(&next->avail_list))
 			goto start_over;
 	}
 	spin_unlock(&swap_avail_lock);

_

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