]> Pileus Git - ~andy/linux/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)
commit7c81878b34dd1b75dec5c8b68951d1439854d358
treeb8b9ad4c00279d8fc0f0402704fc580b1cbc092c
parentd9ae6772d3a3d7325d535577d9fd09c0de8a9da3
[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