All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] thp-increase-split_huge_page-success-rate-fix.patch removed from -mm tree
@ 2016-01-14 22:44 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-01-14 22:44 UTC (permalink / raw)
  To: kirill, mm-commits


The patch titled
     Subject: thp-increase-split_huge_page-success-rate-fix
has been removed from the -mm tree.  Its filename was
     thp-increase-split_huge_page-success-rate-fix.patch

This patch was dropped because it was folded into thp-increase-split_huge_page-success-rate.patch

------------------------------------------------------
From: "Kirill A. Shutemov" <kirill@shutemov.name>
Subject: thp-increase-split_huge_page-success-rate-fix



Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/huge_memory.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff -puN mm/huge_memory.c~thp-increase-split_huge_page-success-rate-fix mm/huge_memory.c
--- a/mm/huge_memory.c~thp-increase-split_huge_page-success-rate-fix
+++ a/mm/huge_memory.c
@@ -3260,6 +3260,7 @@ int split_huge_page_to_list(struct page
 	struct page *head = compound_head(page);
 	struct anon_vma *anon_vma;
 	int count, mapcount, ret;
+	bool mlocked;
 
 	VM_BUG_ON_PAGE(is_huge_zero_page(page), page);
 	VM_BUG_ON_PAGE(!PageAnon(page), page);
@@ -3290,11 +3291,13 @@ int split_huge_page_to_list(struct page
 		goto out_unlock;
 	}
 
+	mlocked = PageMlocked(page);
 	freeze_page(anon_vma, head);
 	VM_BUG_ON_PAGE(compound_mapcount(head), head);
 
 	/* Make sure the page is not on per-CPU pagevec as it takes pin */
-	lru_add_drain();
+	if (mlocked)
+		lru_add_drain();
 
 	/* Prevent deferred_split_scan() touching ->_count */
 	spin_lock(&split_queue_lock);
_

Patches currently in -mm which might be from kirill@shutemov.name are

thp-increase-split_huge_page-success-rate.patch
mm-add-page_check_address_transhuge-helper-fix-fix.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-14 22:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-14 22:44 [folded-merged] thp-increase-split_huge_page-success-rate-fix.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.