]> git.baikalelectronics.ru Git - kernel.git/commit
s390: fix gmap_ipte_notifier vs. software dirty pages
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 17 May 2013 12:41:38 +0000 (14:41 +0200)
committerGleb Natapov <gleb@redhat.com>
Tue, 21 May 2013 08:55:38 +0000 (11:55 +0300)
commit6faa6954fe62611d09f4625444aef841ed4d5e76
tree347954128866e68485eaa1ddedbb24029f86f24f
parent71e37543e5ddb00a5716d4050867dbc4798496e7
s390: fix gmap_ipte_notifier vs. software dirty pages

On heavy paging load some guest cpus started to loop in gmap_ipte_notify.
This was visible as stalled cpus inside the guest. The gmap_ipte_notifier
tries to map a user page and then made sure that the pte is valid and
writable. Turns out that with the software change bit tracking the pte
can become read-only (and only software writable) if the page is clean.
Since we loop in this code, the page would stay clean and, therefore,
be never writable again.
Let us just use fixup_user_fault, that guarantees to call handle_mm_fault.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/s390/mm/pgtable.c