From 2a7bdde29bebcaeb18c8595d31ca0d89b5719a1a Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Sat, 22 Oct 2022 00:24:49 +0200 Subject: [PATCH] generic: 5.15: move MGLRU patches from pending to backport Move MGLRU patches from pending to backport as they got merged upstream. These are direct porting from one of the dev so it's better to just move than trying to backport them again from upstream. Signed-off-by: Christian Marangi --- ...x86-arm64-add-arch_has_hw_pte_young.patch} | 0 ...d-CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG.patch} | 0 ...03-mm-vmscan.c-refactor-shrink_node.patch} | 0 ...mm-multigenerational-lru-groundwork.patch} | 0 ...ultigenerational-lru-mm_struct-list.patch} | 0 ...1-06-mm-multigenerational-lru-aging.patch} | 0 ...7-mm-multigenerational-lru-eviction.patch} | 0 ...ultigenerational-lru-user-interface.patch} | 0 ...09-mm-multigenerational-lru-Kconfig.patch} | 0 ...multigenerational-lru-documentation.patch} | 0 ...don-t-sync-disk-for-each-aging-cycle.patch | 32 +++++++++++++++++++ 11 files changed, 32 insertions(+) rename target/linux/generic/{pending-5.15/020-00-mm-x86-arm64-add-arch_has_hw_pte_young.patch => backport-5.15/020-v6.1-01-mm-x86-arm64-add-arch_has_hw_pte_young.patch} (100%) rename target/linux/generic/{pending-5.15/020-01-mm-x86-add-CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG.patch => backport-5.15/020-v6.1-02-mm-x86-add-CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG.patch} (100%) rename target/linux/generic/{pending-5.15/020-02-mm-vmscan.c-refactor-shrink_node.patch => backport-5.15/020-v6.1-03-mm-vmscan.c-refactor-shrink_node.patch} (100%) rename target/linux/generic/{pending-5.15/020-03-mm-multigenerational-lru-groundwork.patch => backport-5.15/020-v6.1-04-mm-multigenerational-lru-groundwork.patch} (100%) rename target/linux/generic/{pending-5.15/020-04-mm-multigenerational-lru-mm_struct-list.patch => backport-5.15/020-v6.1-05-mm-multigenerational-lru-mm_struct-list.patch} (100%) rename target/linux/generic/{pending-5.15/020-05-mm-multigenerational-lru-aging.patch => backport-5.15/020-v6.1-06-mm-multigenerational-lru-aging.patch} (100%) rename target/linux/generic/{pending-5.15/020-06-mm-multigenerational-lru-eviction.patch => backport-5.15/020-v6.1-07-mm-multigenerational-lru-eviction.patch} (100%) rename target/linux/generic/{pending-5.15/020-07-mm-multigenerational-lru-user-interface.patch => backport-5.15/020-v6.1-08-mm-multigenerational-lru-user-interface.patch} (100%) rename target/linux/generic/{pending-5.15/020-08-mm-multigenerational-lru-Kconfig.patch => backport-5.15/020-v6.1-09-mm-multigenerational-lru-Kconfig.patch} (100%) rename target/linux/generic/{pending-5.15/020-09-mm-multigenerational-lru-documentation.patch => backport-5.15/020-v6.1-10-mm-multigenerational-lru-documentation.patch} (100%) create mode 100644 target/linux/generic/backport-5.15/021-v6.1-mm-mglru-don-t-sync-disk-for-each-aging-cycle.patch diff --git a/target/linux/generic/pending-5.15/020-00-mm-x86-arm64-add-arch_has_hw_pte_young.patch b/target/linux/generic/backport-5.15/020-v6.1-01-mm-x86-arm64-add-arch_has_hw_pte_young.patch similarity index 100% rename from target/linux/generic/pending-5.15/020-00-mm-x86-arm64-add-arch_has_hw_pte_young.patch rename to target/linux/generic/backport-5.15/020-v6.1-01-mm-x86-arm64-add-arch_has_hw_pte_young.patch diff --git a/target/linux/generic/pending-5.15/020-01-mm-x86-add-CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG.patch b/target/linux/generic/backport-5.15/020-v6.1-02-mm-x86-add-CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG.patch similarity index 100% rename from target/linux/generic/pending-5.15/020-01-mm-x86-add-CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG.patch rename to target/linux/generic/backport-5.15/020-v6.1-02-mm-x86-add-CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG.patch diff --git a/target/linux/generic/pending-5.15/020-02-mm-vmscan.c-refactor-shrink_node.patch b/target/linux/generic/backport-5.15/020-v6.1-03-mm-vmscan.c-refactor-shrink_node.patch similarity index 100% rename from target/linux/generic/pending-5.15/020-02-mm-vmscan.c-refactor-shrink_node.patch rename to target/linux/generic/backport-5.15/020-v6.1-03-mm-vmscan.c-refactor-shrink_node.patch diff --git a/target/linux/generic/pending-5.15/020-03-mm-multigenerational-lru-groundwork.patch b/target/linux/generic/backport-5.15/020-v6.1-04-mm-multigenerational-lru-groundwork.patch similarity index 100% rename from target/linux/generic/pending-5.15/020-03-mm-multigenerational-lru-groundwork.patch rename to target/linux/generic/backport-5.15/020-v6.1-04-mm-multigenerational-lru-groundwork.patch diff --git a/target/linux/generic/pending-5.15/020-04-mm-multigenerational-lru-mm_struct-list.patch b/target/linux/generic/backport-5.15/020-v6.1-05-mm-multigenerational-lru-mm_struct-list.patch similarity index 100% rename from target/linux/generic/pending-5.15/020-04-mm-multigenerational-lru-mm_struct-list.patch rename to target/linux/generic/backport-5.15/020-v6.1-05-mm-multigenerational-lru-mm_struct-list.patch diff --git a/target/linux/generic/pending-5.15/020-05-mm-multigenerational-lru-aging.patch b/target/linux/generic/backport-5.15/020-v6.1-06-mm-multigenerational-lru-aging.patch similarity index 100% rename from target/linux/generic/pending-5.15/020-05-mm-multigenerational-lru-aging.patch rename to target/linux/generic/backport-5.15/020-v6.1-06-mm-multigenerational-lru-aging.patch diff --git a/target/linux/generic/pending-5.15/020-06-mm-multigenerational-lru-eviction.patch b/target/linux/generic/backport-5.15/020-v6.1-07-mm-multigenerational-lru-eviction.patch similarity index 100% rename from target/linux/generic/pending-5.15/020-06-mm-multigenerational-lru-eviction.patch rename to target/linux/generic/backport-5.15/020-v6.1-07-mm-multigenerational-lru-eviction.patch diff --git a/target/linux/generic/pending-5.15/020-07-mm-multigenerational-lru-user-interface.patch b/target/linux/generic/backport-5.15/020-v6.1-08-mm-multigenerational-lru-user-interface.patch similarity index 100% rename from target/linux/generic/pending-5.15/020-07-mm-multigenerational-lru-user-interface.patch rename to target/linux/generic/backport-5.15/020-v6.1-08-mm-multigenerational-lru-user-interface.patch diff --git a/target/linux/generic/pending-5.15/020-08-mm-multigenerational-lru-Kconfig.patch b/target/linux/generic/backport-5.15/020-v6.1-09-mm-multigenerational-lru-Kconfig.patch similarity index 100% rename from target/linux/generic/pending-5.15/020-08-mm-multigenerational-lru-Kconfig.patch rename to target/linux/generic/backport-5.15/020-v6.1-09-mm-multigenerational-lru-Kconfig.patch diff --git a/target/linux/generic/pending-5.15/020-09-mm-multigenerational-lru-documentation.patch b/target/linux/generic/backport-5.15/020-v6.1-10-mm-multigenerational-lru-documentation.patch similarity index 100% rename from target/linux/generic/pending-5.15/020-09-mm-multigenerational-lru-documentation.patch rename to target/linux/generic/backport-5.15/020-v6.1-10-mm-multigenerational-lru-documentation.patch diff --git a/target/linux/generic/backport-5.15/021-v6.1-mm-mglru-don-t-sync-disk-for-each-aging-cycle.patch b/target/linux/generic/backport-5.15/021-v6.1-mm-mglru-don-t-sync-disk-for-each-aging-cycle.patch new file mode 100644 index 0000000000..269e5eb204 --- /dev/null +++ b/target/linux/generic/backport-5.15/021-v6.1-mm-mglru-don-t-sync-disk-for-each-aging-cycle.patch @@ -0,0 +1,32 @@ +From 14aa8b2d5c2ebead01b542f62d68029023054774 Mon Sep 17 00:00:00 2001 +From: Yu Zhao +Date: Wed, 28 Sep 2022 13:36:58 -0600 +Subject: [PATCH 1/1] mm/mglru: don't sync disk for each aging cycle + +wakeup_flusher_threads() was added under the assumption that if a system +runs out of clean cold pages, it might want to write back dirty pages more +aggressively so that they can become clean and be dropped. + +However, doing so can breach the rate limit a system wants to impose on +writeback, resulting in early SSD wearout. + +Link: https://lkml.kernel.org/r/YzSiWq9UEER5LKup@google.com +Fixes: bd74fdaea146 ("mm: multi-gen LRU: support page table walks") +Signed-off-by: Yu Zhao +Reported-by: Axel Rasmussen +Signed-off-by: Andrew Morton +--- + mm/vmscan.c | 2 -- + 1 file changed, 2 deletions(-) + +--- a/mm/vmscan.c ++++ b/mm/vmscan.c +@@ -4072,8 +4072,6 @@ static bool try_to_inc_max_seq(struct lr + if (wq_has_sleeper(&lruvec->mm_walk.wait)) + wake_up_all(&lruvec->mm_walk.wait); + +- wakeup_flusher_threads(WB_REASON_VMSCAN); +- + return true; + } + -- 2.30.2