]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/mm: Add mmap_assert_write_locked() check to crst_table_upgrade()
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 30 Apr 2025 08:59:30 +0000 (10:59 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 5 May 2025 13:47:20 +0000 (15:47 +0200)
commitf049a4f7ffa50000485a61d5518ffae24b662aaa
treee68f0be0aad6993dbdcbded76f29056b1d90b868
parentde6b4f99010ad22f0242f1fc0f75c0752a56e9bb
s390/mm: Add mmap_assert_write_locked() check to crst_table_upgrade()

Add mmap_assert_write_locked() check to crst_table_upgrade() in order to
verify that no concurrent page table upgrades of an mm can happen. This
allows to remove the VM_BUG_ON() check which checks for the potential
inconsistent result of concurrent updates.

Reviewed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/mm/pgalloc.c