]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] fix page change underindication in pgste_update_all
authorCarsten Otte <cotte@de.ibm.com>
Thu, 1 Dec 2011 12:32:16 +0000 (13:32 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 1 Dec 2011 12:32:17 +0000 (13:32 +0100)
commitdb6ea126775325a86ca2635bf2ad721de5bec5a6
treeb8b9ad4c00279d8fc0f0402704fc580b1cbc092c
parent335c9cf6bfd4bffe68b79f1045ebed0669bba0d4
[S390] fix page change underindication in pgste_update_all

This patch makes sure we don't underindicate _PAGE_CHANGED in case
we have a race between an operation that changes the page and this
code path that hits us between page_get_storage_key and
page_set_storage_key. Note that we still have a potential
underindication on _PAGE_REFERENCED in the unlikely event that
the page was changed but not referenced _and_ someone references
the page in the race window. That's not considered to be a problem.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/pgtable.h