]> git.proxmox.com Git - pve-kernel.git/commitdiff
rebase patches on top of Ubuntu-4.13.0-39.44
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 9 Apr 2018 07:28:57 +0000 (09:28 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 9 Apr 2018 07:59:08 +0000 (09:59 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
patches/kernel/0012-KVM-x86-Add-memory-barrier-on-vmcs-field-lookup.patch
patches/kernel/0022-mm-thp-Do-not-wait-for-lock_page-in-deferred_split_s.patch [deleted file]
patches/kernel/0023-mm-thp-Do-not-wait-for-lock_page-in-deferred_split_s.patch [new file with mode: 0644]

index 0523e06a2d7c51e383a563c5f7e9d4d1d8bb7cb6..d69b9a6c0d914829ea0c851709a4e59dfc60b932 100644 (file)
@@ -22,7 +22,7 @@ Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
  1 file changed, 10 insertions(+), 2 deletions(-)
 
 diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
-index 097f3daae037..b078b56234bb 100644
+index 6704e716efdc..5b5413c23395 100644
 --- a/arch/x86/kvm/vmx.c
 +++ b/arch/x86/kvm/vmx.c
 @@ -883,8 +883,16 @@ static inline short vmcs_field_to_offset(unsigned long field)
diff --git a/patches/kernel/0022-mm-thp-Do-not-wait-for-lock_page-in-deferred_split_s.patch b/patches/kernel/0022-mm-thp-Do-not-wait-for-lock_page-in-deferred_split_s.patch
deleted file mode 100644 (file)
index 239aa42..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
-Date: Thu, 15 Mar 2018 18:07:47 +0300
-Subject: [PATCH] mm/thp: Do not wait for lock_page() in deferred_split_scan()
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-deferred_split_scan() gets called from reclaim path. Waiting for page
-lock may lead to deadlock there.
-
-Replace lock_page() with trylock_page() and skip the page if we failed
-to lock it. We will get to the page on the next scan.
-
-Fixes: 9a982250f773 ("thp: introduce deferred_split_huge_page()")
-
-Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
-Acked-by: Michal Hocko <mhocko@suse.com>
-(cherry-picked from https://patchwork.kernel.org/patch/10284703/)
-Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
----
- mm/huge_memory.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/mm/huge_memory.c b/mm/huge_memory.c
-index 8b887db33383..5c4093e0be8d 100644
---- a/mm/huge_memory.c
-+++ b/mm/huge_memory.c
-@@ -2621,11 +2621,13 @@ static unsigned long deferred_split_scan(struct shrinker *shrink,
-       list_for_each_safe(pos, next, &list) {
-               page = list_entry((void *)pos, struct page, mapping);
--              lock_page(page);
-+              if (!trylock_page(page))
-+                      goto next;
-               /* split_huge_page() removes page from list on success */
-               if (!split_huge_page(page))
-                       split++;
-               unlock_page(page);
-+next:
-               put_page(page);
-       }
--- 
-2.14.2
-
diff --git a/patches/kernel/0023-mm-thp-Do-not-wait-for-lock_page-in-deferred_split_s.patch b/patches/kernel/0023-mm-thp-Do-not-wait-for-lock_page-in-deferred_split_s.patch
new file mode 100644 (file)
index 0000000..239aa42
--- /dev/null
@@ -0,0 +1,46 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
+Date: Thu, 15 Mar 2018 18:07:47 +0300
+Subject: [PATCH] mm/thp: Do not wait for lock_page() in deferred_split_scan()
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+deferred_split_scan() gets called from reclaim path. Waiting for page
+lock may lead to deadlock there.
+
+Replace lock_page() with trylock_page() and skip the page if we failed
+to lock it. We will get to the page on the next scan.
+
+Fixes: 9a982250f773 ("thp: introduce deferred_split_huge_page()")
+
+Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
+Acked-by: Michal Hocko <mhocko@suse.com>
+(cherry-picked from https://patchwork.kernel.org/patch/10284703/)
+Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
+---
+ mm/huge_memory.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/mm/huge_memory.c b/mm/huge_memory.c
+index 8b887db33383..5c4093e0be8d 100644
+--- a/mm/huge_memory.c
++++ b/mm/huge_memory.c
+@@ -2621,11 +2621,13 @@ static unsigned long deferred_split_scan(struct shrinker *shrink,
+       list_for_each_safe(pos, next, &list) {
+               page = list_entry((void *)pos, struct page, mapping);
+-              lock_page(page);
++              if (!trylock_page(page))
++                      goto next;
+               /* split_huge_page() removes page from list on success */
+               if (!split_huge_page(page))
+                       split++;
+               unlock_page(page);
++next:
+               put_page(page);
+       }
+-- 
+2.14.2
+