[folded-merged] mm-thp-fix-madv_dontneed-vs-migrate_misplaced_transhuge_page-race-condition-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm-thp-fix-madv_dontneed-vs-migrate_misplaced_transhuge_page-race-condition-fix
has been removed from the -mm tree.  Its filename was
     mm-thp-fix-madv_dontneed-vs-migrate_misplaced_transhuge_page-race-condition-fix.patch

This patch was dropped because it was folded into mm-thp-fix-madv_dontneed-vs-migrate_misplaced_transhuge_page-race-condition.patch

------------------------------------------------------
From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Subject: mm-thp-fix-madv_dontneed-vs-migrate_misplaced_transhuge_page-race-condition-fix

reflow comment to 80 cols, fix grammar and typo (beacuse)

Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---


--- a/mm/migrate.c~mm-thp-fix-madv_dontneed-vs-migrate_misplaced_transhuge_page-race-condition-fix
+++ a/mm/migrate.c
@@ -2041,16 +2041,15 @@ int migrate_misplaced_transhuge_page(str
 	flush_cache_range(vma, mmun_start, mmun_end);
 	page_add_anon_rmap(new_page, vma, mmun_start, true);
 	/*
-	 * At this point the pmd is numa/protnone (i.e. non present)
-	 * and the TLB has already been flushed globally. So no TLB
-	 * can be currently caching this non present pmd mapping.
-	 * There's no need of clearing the pmd before doing
-	 * set_pmd_at(), nor to flush the TLB after
-	 * set_pmd_at(). Clearing the pmd here would introduce a race
-	 * condition against MADV_DONTNEED, beacuse MADV_DONTNEED only
-	 * holds the mmap_sem for reading. If the pmd is set to NULL
-	 * at any given time, MADV_DONTNEED won't wait on the pmd lock
-	 * and it'll skip clearing this pmd.
+	 * At this point the pmd is numa/protnone (i.e. non present) and the TLB
+	 * has already been flushed globally.  So no TLB can be currently
+	 * caching this non present pmd mapping.  There's no need to clear the
+	 * pmd before doing set_pmd_at(), nor to flush the TLB after
+	 * set_pmd_at().  Clearing the pmd here would introduce a race
+	 * condition against MADV_DONTNEED, because MADV_DONTNEED only holds the
+	 * mmap_sem for reading.  If the pmd is set to NULL at any given time,
+	 * MADV_DONTNEED won't wait on the pmd lock and it'll skip clearing this
+	 * pmd.
 	 */
 	set_pmd_at(mm, mmun_start, pmd, entry);
 	update_mmu_cache_pmd(vma, address, &entry);
_

Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are

mm-thp-fix-madv_dontneed-vs-migrate_misplaced_transhuge_page-race-condition.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux