Skip to contentSkip to conversation

mm-multi-gen-lru-simplify-arch_has_hw_pte_young-check.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 19, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: multi-gen LRU: simplify arch_has_hw_pte_young() check
has been removed from the -mm tree. Its filename was
mm-multi-gen-lru-simplify-arch_has_hw_pte_young-check.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: Yu Zhao <[email protected]>
Subject: mm: multi-gen LRU: simplify arch_has_hw_pte_young() check
Date: Wed, 21 Dec 2022 21:19:06 -0700

Scanning page tables when hardware does not set the accessed bit has no real use cases.

Cc Johannes Weiner <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Michael Larabel <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Roman Gushchin <[email protected]>
Cc Suren Baghdasaryan <[email protected]>

---

 mm/vmscan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/vmscan.c renamed from mm/vmscan.c~mm-multi-gen-lru-simplify-arch_has_hw_pte_young-check +1 -1
@@ -4428,7 +4428,7 @@ static bool try_to_inc_max_seq(struct lr
 	 * handful of PTEs. Spreading the work out over a period of time usually
 	 * is less efficient, but it avoids bursty page faults.
 	 */
-	if (!force_scan && !(arch_has_hw_pte_young() && get_cap(LRU_GEN_MM_WALK))) {
+	if (!arch_has_hw_pte_young() || !get_cap(LRU_GEN_MM_WALK)) {
 		success = iterate_mm_list_nowalk(lruvec, max_seq);
 		goto done;
 	}

_

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

mm-multi-gen-lru-fix-crash-during-cgroup-migration.patch