diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2019-11-22 12:19:16 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2019-11-30 10:52:45 +0100 |
commit | 7f28dad395243c5026d649136823bbc40029a828 (patch) | |
tree | a5fc949c7deed860f285fea388b1b34cc7e23d9c /arch/s390/kernel | |
parent | c2e06e15ad92bad94b54df257c683f7e715238a1 (diff) | |
download | linux-7f28dad395243c5026d649136823bbc40029a828.tar.gz linux-7f28dad395243c5026d649136823bbc40029a828.tar.bz2 linux-7f28dad395243c5026d649136823bbc40029a828.zip |
s390: disable preemption when switching to nodat stack with CALL_ON_STACK
Make sure preemption is disabled when temporary switching to nodat
stack with CALL_ON_STACK helper, because nodat stack is per cpu.
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r-- | arch/s390/kernel/machine_kexec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/machine_kexec.c b/arch/s390/kernel/machine_kexec.c index 444a19125a81..dcaadceaf6ef 100644 --- a/arch/s390/kernel/machine_kexec.c +++ b/arch/s390/kernel/machine_kexec.c @@ -164,7 +164,9 @@ static bool kdump_csum_valid(struct kimage *image) #ifdef CONFIG_CRASH_DUMP int rc; + preempt_disable(); rc = CALL_ON_STACK(do_start_kdump, S390_lowcore.nodat_stack, 1, image); + preempt_enable(); return rc == 0; #else return false; |