[nacked] mm-disable-preemption-in-apply_to_pte_range.patch removed from -mm tree

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

 



The patch titled
     mm: disable preemption in apply_to_pte_range
has been removed from the -mm tree.  Its filename was
     mm-disable-preemption-in-apply_to_pte_range.patch

This patch was dropped because it was nacked

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: mm: disable preemption in apply_to_pte_range
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>

Lazy mmu mode needs preemption disabled, so if we're apply to init_mm
(which doesn't require any pte locks), then explicitly disable preemption.
 (Do it unconditionally after checking we've successfully done the
allocation to simplify the error handling.)

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx>
Cc: Hugh Dickins <hugh@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/memory.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN mm/memory.c~mm-disable-preemption-in-apply_to_pte_range mm/memory.c
--- a/mm/memory.c~mm-disable-preemption-in-apply_to_pte_range
+++ a/mm/memory.c
@@ -1725,6 +1725,7 @@ static int apply_to_pte_range(struct mm_
 
 	BUG_ON(pmd_huge(*pmd));
 
+	preempt_disable();
 	arch_enter_lazy_mmu_mode();
 
 	token = pmd_pgtable(*pmd);
@@ -1736,6 +1737,7 @@ static int apply_to_pte_range(struct mm_
 	} while (pte++, addr += PAGE_SIZE, addr != end);
 
 	arch_leave_lazy_mmu_mode();
+	preempt_enable();
 
 	if (mm != &init_mm)
 		pte_unmap_unlock(pte-1, ptl);
_

Patches currently in -mm which might be from jeremy@xxxxxxxx are

linux-next.patch
mm-disable-preemption-in-apply_to_pte_range.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

  Powered by Linux