linux-parisc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] parisc: replace oops_in_progress manipulation with bust_spinlocks()
@ 2019-01-07  9:56 Sergey Senozhatsky
  2019-01-08  7:44 ` Helge Deller
  0 siblings, 1 reply; 6+ messages in thread
From: Sergey Senozhatsky @ 2019-01-07  9:56 UTC (permalink / raw)
  To: James E . J . Bottomley, Helge Deller
  Cc: linux-parisc, linux-kernel, Sergey Senozhatsky

Use bust_spinlocks() function to set oops_in_progress.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
 arch/parisc/kernel/traps.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/parisc/kernel/traps.c b/arch/parisc/kernel/traps.c
index 472a818e8c17..7e1ccafadf57 100644
--- a/arch/parisc/kernel/traps.c
+++ b/arch/parisc/kernel/traps.c
@@ -218,7 +218,7 @@ void die_if_kernel(char *str, struct pt_regs *regs, long err)
 		return;
 	}
 
-	oops_in_progress = 1;
+	bust_spinlocks(1);
 
 	oops_enter();
 
@@ -396,7 +396,7 @@ void parisc_terminate(char *msg, struct pt_regs *regs, int code, unsigned long o
 {
 	static DEFINE_SPINLOCK(terminate_lock);
 
-	oops_in_progress = 1;
+	bust_spinlocks(1);
 
 	set_eiem(0);
 	local_irq_disable();
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-01-09  7:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-07  9:56 [PATCH] parisc: replace oops_in_progress manipulation with bust_spinlocks() Sergey Senozhatsky
2019-01-08  7:44 ` Helge Deller
2019-01-09  5:39   ` Sergey Senozhatsky
2019-01-09  5:53     ` Sergey Senozhatsky
2019-01-09  7:16     ` Helge Deller
2019-01-09  7:56       ` Sergey Senozhatsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).