kernel_optimize_test/arch/s390/mm
Martin Schwidefsky cd94154cc6 [S390] fix tlb flushing for page table pages
Git commit 36409f6353 "use generic RCU
page-table freeing code" introduced a tlb flushing bug. Partially revert
the above git commit and go back to s390 specific page table flush code.

For s390 the TLB can contain three types of entries, "normal" TLB
page-table entries, TLB combined region-and-segment-table (CRST) entries
and real-space entries. Linux does not use real-space entries which
leaves normal TLB entries and CRST entries. The CRST entries are
intermediate steps in the page-table translation called translation paths.
For example a 4K page access in a three-level page table setup will
create two CRST TLB entries and one page-table TLB entry. The advantage
of that approach is that a page access next to the previous one can reuse
the CRST entries and needs just a single read from memory to create the
page-table TLB entry. The disadvantage is that the TLB flushing rules are
more complicated, before any page-table may be freed the TLB needs to be
flushed.

In short: the generic RCU page-table freeing code is incorrect for the
CRST entries, in particular the check for mm_users < 2 is troublesome.

This is applicable to 3.0+ kernels.

Cc: <stable@vger.kernel.org>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2012-04-11 14:28:24 +02:00
..
cmm.c
extmem.c [S390] extmem: get rid of compile warning 2011-05-23 10:24:29 +02:00
fault.c Disintegrate asm/system.h for S390 2012-03-28 18:30:02 +01:00
gup.c thp: share get_huge_page_tail() 2011-11-02 16:06:58 -07:00
hugetlbpage.c [S390] kvm guest address space mapping 2011-07-24 10:48:21 +02:00
init.c Disintegrate asm/system.h for S390 2012-03-28 18:30:02 +01:00
maccess.c [S390] kernel: Use local_irq_save() for memcpy_real() 2012-04-11 14:28:24 +02:00
Makefile
mmap.c [S390] Remove unncessary export of arch_pick_mmap_layout 2012-03-23 11:13:23 +01:00
page-states.c
pageattr.c [S390] sparse: fix sparse warnings about missing prototypes 2011-10-30 15:16:46 +01:00
pgtable.c [S390] fix tlb flushing for page table pages 2012-04-11 14:28:24 +02:00
vmem.c [S390] kdump backend code 2011-10-30 15:16:42 +01:00