s390/mm: flush tlb of shadows in all situations
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Fri, 15 Apr 2016 10:45:45 +0000 (12:45 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 20 Jun 2016 07:54:18 +0000 (09:54 +0200)
commiteea3678d4334925bf838e6f4bc88760811a84cd6
treeb2f259d685344030fde9d7cb7312d2e330d223a0
parentaa17aa57cfb95b169f25fe98caae49e477590af3
s390/mm: flush tlb of shadows in all situations

For now, the tlb of shadow gmap is only flushed when the parent is removed,
not when it is removed upfront. Therefore other shadow gmaps can reuse the
tables without the tlb getting flushed.

Fix this by simply flushing the tlb
1. Before the shadow tables are removed (analogouos to other unshadow functions)
2. When the gmap is freed and therefore the top level pages are freed.

Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/mm/gmap.c