s390/thp: implement pmdp_set_wrprotect()
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Mon, 21 Jan 2013 15:48:07 +0000 (16:48 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 22 Jan 2013 12:32:16 +0000 (13:32 +0100)
commitbe3286507dab888d4aad9f91fd6ff5202b24cd5b
tree317b9853ab9be77d37590e8e13616cd9ab90caf1
parent9a9284153d965a57edc7162a8e57c14c97f3a935
s390/thp: implement pmdp_set_wrprotect()

On s390, an architecture-specific implementation of the function
pmdp_set_wrprotect() is missing and the generic version is currently
being used. The generic version does not flush the tlb as it would be
needed on s390 when modifying an active pmd, which can lead to subtle
tlb errors on s390 when using transparent hugepages.

This patch adds an s390-specific implementation of pmdp_set_wrprotect()
including the missing tlb flush.

Cc: stable@vger.kernel.org
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h