summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDave Kleikamp <dave.kleikamp@oracle.com>2013-06-18 09:05:36 -0500
committerXavier Boudet <xboudet@gmail.com>2013-07-30 14:26:54 +0200
commit909d84f6efc0fbc67d1c3a73b6f536fb2effb448 (patch)
tree193cbcbfd1fd50174dc29256d3e5cebe29fa2bc7 /arch
parent252d5d7f35d0d156231a9ea773bd66dd1df96125 (diff)
sparc: tsb must be flushed before tlb
Upstream commit 23a01138efe216f8084cfaa74b0b90dd4b097441 This fixes a race where a cpu may re-load a tlb from a stale tsb right after it has been flushed by a remote function call. I still see some instability when stressing the system with parallel kernel builds while creating memory pressure by writing to /proc/sys/vm/nr_hugepages, but this patch improves the stability significantly. Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com> Acked-by: Bob Picco <bob.picco@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc/mm/tlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/mm/tlb.c b/arch/sparc/mm/tlb.c
index afd021ed9418..072f5530373e 100644
--- a/arch/sparc/mm/tlb.c
+++ b/arch/sparc/mm/tlb.c
@@ -115,8 +115,8 @@ no_cache_flush:
}
if (!tb->active) {
- global_flush_tlb_page(mm, vaddr);
flush_tsb_user_page(mm, vaddr);
+ global_flush_tlb_page(mm, vaddr);
goto out;
}