* [PATCH] sparc: tsb must be flushed before tlb
@ 2013-06-18 14:05 Dave Kleikamp
2013-06-19 9:15 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Dave Kleikamp @ 2013-06-18 14:05 UTC (permalink / raw)
To: sparclinux
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>
---
arch/sparc/mm/tlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/sparc/mm/tlb.c b/arch/sparc/mm/tlb.c
index 83d89bc..37e7bc4 100644
--- a/arch/sparc/mm/tlb.c
+++ b/arch/sparc/mm/tlb.c
@@ -85,8 +85,8 @@ static void tlb_batch_add_one(struct mm_struct *mm, unsigned long vaddr,
}
if (!tb->active) {
- global_flush_tlb_page(mm, vaddr);
flush_tsb_user_page(mm, vaddr);
+ global_flush_tlb_page(mm, vaddr);
goto out;
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sparc: tsb must be flushed before tlb
2013-06-18 14:05 [PATCH] sparc: tsb must be flushed before tlb Dave Kleikamp
@ 2013-06-19 9:15 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-06-19 9:15 UTC (permalink / raw)
To: sparclinux
From: Dave Kleikamp <dave.kleikamp@oracle.com>
Date: Tue, 18 Jun 2013 09:05:36 -0500
> 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>
Applied and queued up for -stable, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-19 9:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-18 14:05 [PATCH] sparc: tsb must be flushed before tlb Dave Kleikamp
2013-06-19 9:15 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.