s390/vmemmap: take the vmem_mutex when populating/freeing
authorDavid Hildenbrand <david@redhat.com>
Wed, 22 Jul 2020 09:45:54 +0000 (11:45 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 27 Jul 2020 08:33:51 +0000 (10:33 +0200)
commitaa18e0e65800bf3250b23914a28e0e3fd9cadec2
tree3e8f2fa27c5a3cea6410f5e9fadd7f69623c2c36
parentc00f05a92424c7788fdbf0909b823f8027596d66
s390/vmemmap: take the vmem_mutex when populating/freeing

Let's synchronize all accesses to the 1:1 and vmemmap mappings. This will
be especially relevant when wanting to cleanup empty page tables that could
be shared by both. Avoid races when removing tables that might be just
about to get reused.

Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20200722094558.9828-6-david@redhat.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/mm/vmem.c