sparc: tsb must be flushed before tlb
authorDave Kleikamp <dave.kleikamp@oracle.com>
Tue, 18 Jun 2013 14:05:36 +0000 (09:05 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2013 09:10:30 +0000 (02:10 -0700)
commit23a01138efe216f8084cfaa74b0b90dd4b097441
tree3a13b9b2383b9077e54d998abb2e41365abe7aa6
parentf670758f5b829169562e1016a72af0c59360a541
sparc: tsb must be flushed before tlb

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>
arch/sparc/mm/tlb.c