VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   30 Branches   50 Tags
author: Miaohe Lin <linmiaohe@huawei.com> 2021-08-25 12:17:55 -0700 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-09-03 10:22:48 +0200 commit: dbce1780abeb4236a94378bca2ba9f60700280d8 parent: 0d1cf894cc24cedc307d6f0072f606be07f42006
Commit Summary:
mm/memory_hotplug: fix potential permanent lru cache disable
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 70620d0dd923..1bf3f8681250 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -1854,6 +1854,7 @@ failed_removal_isolated:
 	undo_isolate_page_range(start_pfn, end_pfn, MIGRATE_MOVABLE);
 	memory_notify(MEM_CANCEL_OFFLINE, &arg);
 failed_removal_pcplists_disabled:
+	lru_cache_enable();
 	zone_pcp_enable(zone);
 failed_removal:
 	pr_debug("memory offlining [mem %#010llx-%#010llx] failed due to %s\n",