]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: ensure switch_mm() is executed with interrupts disabled
authorAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 6 May 2021 18:06:00 +0000 (20:06 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Jun 2021 15:06:59 +0000 (17:06 +0200)
commit9bc35f7de369325e6368fb7dc69be58b2870c3d0
tree6670cffbce3805d715ebaed93fef07cf425ca7b6
parent671a7078ee7c9bb59adf0a561b67546d2db59ea3
s390/mm: ensure switch_mm() is executed with interrupts disabled

Architecture callback switch_mm() is allowed to be called with
enabled interrupts. However, our implementation of switch_mm()
does not expect that. Let's follow other architectures and make
sure switch_mm() is always executed with interrupts disabled,
regardless of what happens with the generic kernel code in the
future.

Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/mmu_context.h