]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: make pmdp_invalidate() do invalidation only
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Mon, 18 Sep 2017 14:10:35 +0000 (16:10 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 19 Sep 2017 06:36:19 +0000 (08:36 +0200)
commitc2094191415a97a4ee7fab823eaf55c7a31c76ec
tree365f589e535fcd60a1e5bdd9c66b404fb8233d6a
parent2e56c8c044c304af8a93ede1c0c78f048c5d1d8f
s390/mm: make pmdp_invalidate() do invalidation only

Commit 2c0d505eb252 ("s390/mm: uninline pmdp_xxx functions from pgtable.h")
inadvertently changed the behavior of pmdp_invalidate(), so that it now
clears the pmd instead of just marking it as invalid. Fix this by restoring
the original behavior.

A possible impact of the misbehaving pmdp_invalidate() would be the
MADV_DONTNEED races (see commits 268fda34 and 96fc3c61), although we
should not have any negative impact on the related dirty/young flags,
since those flags are not set by the hardware on s390.

Fixes: 2c0d505eb252 ("s390/mm: uninline pmdp_xxx functions from pgtable.h")
Cc: <stable@vger.kernel.org> # v4.6+
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