]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[S390] s390: fix page change underindication in pgste_update_all
authorCarsten Otte <cotte@de.ibm.com>
Tue, 29 Nov 2011 08:32:55 +0000 (09:32 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 29 Nov 2011 08:33:05 +0000 (09:33 +0100)
commit43760a947009515f2f058d277ecc718572f18360
tree3182c3ac7e40fc67dfd8f129d555f0893f48ddd5
parent6f3a0aa0b06a8725bbd0da4a3555487aafb8072c
[S390] 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