linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] numa, mm: drop redundant check in do_huge_pmd_numa_page()
@ 2012-10-26 12:54 Kirill A. Shutemov
  2012-10-26 12:54 ` [PATCH 2/2] numa, mm: consolidate error path " Kirill A. Shutemov
  2012-10-26 13:08 ` [PATCH 1/2] numa, mm: drop redundant check " Peter Zijlstra
  0 siblings, 2 replies; 9+ messages in thread
From: Kirill A. Shutemov @ 2012-10-26 12:54 UTC (permalink / raw)
  To: linux-mm
  Cc: Will Deacon, Kirill A. Shutemov, Andrew Morton, Andrea Arcangeli,
	Xiao Guangrong, Ingo Molnar, Peter Zijlstra, linux-kernel

From: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>

We check if the pmd entry is the same as on pmd_trans_huge() in
handle_mm_fault(). That's enough.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
---
 mm/huge_memory.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 3c14a96..9bb2c23 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -758,12 +758,6 @@ void do_huge_pmd_numa_page(struct mm_struct *mm, struct vm_area_struct *vma,
 	if (unlikely(!pmd_same(*pmd, entry)))
 		goto unlock;
 
-	if (unlikely(pmd_trans_splitting(entry))) {
-		spin_unlock(&mm->page_table_lock);
-		wait_split_huge_page(vma->anon_vma, pmd);
-		return;
-	}
-
 	page = pmd_page(entry);
 	if (page) {
 		VM_BUG_ON(!PageCompound(page) || !PageHead(page));
-- 
1.7.10.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-10-26 14:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-26 12:54 [PATCH 1/2] numa, mm: drop redundant check in do_huge_pmd_numa_page() Kirill A. Shutemov
2012-10-26 12:54 ` [PATCH 2/2] numa, mm: consolidate error path " Kirill A. Shutemov
2012-10-26 13:10   ` Peter Zijlstra
2012-10-26 13:08 ` [PATCH 1/2] numa, mm: drop redundant check " Peter Zijlstra
2012-10-26 13:41   ` Kirill A. Shutemov
2012-10-26 13:43     ` Peter Zijlstra
2012-10-26 13:57       ` Kirill A. Shutemov
2012-10-26 14:07         ` Peter Zijlstra
2012-10-26 14:34           ` Kirill A. Shutemov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).