- rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix.patch removed from -mm tree

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

 



The patch titled
     rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix
has been removed from the -mm tree.  Its filename was
     rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix.patch

This patch was dropped because it was folded into rework-ptep_set_access_flags-and-fix-sun4c.patch

------------------------------------------------------
Subject: rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix
From: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>

Some changes done a while ago to avoid pounding on ptep_set_access_flags
and update_mmu_cache in some race situations break sun4c which requires
update_mmu_cache() to always be called on minor faults.

This patch reworks ptep_set_access_flags() semantics, implementations
and callers so that it's now responsible for returning whether an update
is necessary or not (basically whether the PTE actually changed). This
allow fixing the sparc implementation to always return 1 on sun4c.

Hope I got ia64 right this time !

Signed-off-by: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/asm-ia64/pgtable.h |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff -puN include/asm-ia64/pgtable.h~rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix include/asm-ia64/pgtable.h
--- a/include/asm-ia64/pgtable.h~rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix
+++ a/include/asm-ia64/pgtable.h
@@ -534,13 +534,13 @@ extern void lazy_mmu_prot_update (pte_t 
  */
 #ifdef CONFIG_SMP
 # define ptep_set_access_flags(__vma, __addr, __ptep, __entry, __safely_writable) \
-({										\
-	int __changed = !pte_same(*(__ptep), __entry);				\
-	if (__changed && __safely_writable) {					\
-		set_pte(__ptep, __entry);					\
-		flush_tlb_page(__vma, __addr);					\
-	}									\
-	__changed;								\
+({									\
+	int __changed = !pte_same(*(__ptep), __entry);			\
+	if (__changed && __safely_writable) {				\
+		set_pte(__ptep, __entry);				\
+		flush_tlb_page(__vma, __addr);				\
+	}								\
+	__changed;							\
 })
 #else
 # define ptep_set_access_flags(__vma, __addr, __ptep, __entry, __safely_writable) \
_

Patches currently in -mm which might be from benh@xxxxxxxxxxxxxxxxxxx are

origin.patch
rework-ptep_set_access_flags-and-fix-sun4c.patch
rework-ptep_set_access_flags-and-fix-sun4c-fix-fix-fix.patch
git-powerpc.patch
do-not-select-macintosh-drivers-by-default.patch
8xx-mpc885ads-pcmcia-support.patch
dts-kill-hardcoded-phandles.patch
git-libata-all.patch
i386-flush_tlb_kernel_range-add-reference-to-the-arguments.patch
8xx-fix-whitespace-and-indentation.patch
radeonfb-add-support-for-radeon-xpress-200m-rs485.patch
controlfb-the-pseudo_palette-is-only-16-elements-long.patch
fallocate-implementation-on-i86-x86_64-and-powerpc.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