]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kasan: Remove unnecessary page table locking
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 19 May 2020 05:48:46 +0000 (05:48 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 20 May 2020 13:41:02 +0000 (23:41 +1000)
commitd0d53ed6b365acb5848fcc1279bd2aa01fccef15
treefffb715abe96ed006cb42fa43f12555c16b910b3
parente7a1a6fb3e7846b63ce733e8014d80f520de56cd
powerpc/kasan: Remove unnecessary page table locking

Commit f138cb886ce3 ("powerpc/kasan: Fix parallel loading of
modules.") added spinlocks to manage parallele module loading.

Since then commit e83df59c7f00 ("powerpc/32: Force KASAN_VMALLOC for
modules") converted the module loading to KASAN_VMALLOC.

The spinlocking has then become unneeded and can be removed to
simplify kasan_init_shadow_page_tables()

Also remove inclusion of linux/moduleloader.h and linux/vmalloc.h
which are not needed anymore since the removal of modules management.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/81a4d3aee8b82bc1355595935c8f4ad9d3b22a83.1589866984.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/kasan/kasan_init_32.c