All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mtdoops: do not schedule work if we are going to die
@ 2009-10-01 15:16 Aaro Koskinen
  2009-10-01 15:16 ` [PATCH 2/2] OneNAND: OMAP: do not use DMA if oops in progress Aaro Koskinen
  2009-10-02 14:18 ` [PATCH 1/2] mtdoops: do not schedule work if we are going to die Simon Kagstrom
  0 siblings, 2 replies; 5+ messages in thread
From: Aaro Koskinen @ 2009-10-01 15:16 UTC (permalink / raw)
  To: linux-mtd; +Cc: Artem.Bityutskiy, aaro.koskinen

If panic_on_oops is set, the log should be written right away.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
---
 drivers/mtd/mtdoops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c
index 1060337..ac67833 100644
--- a/drivers/mtd/mtdoops.c
+++ b/drivers/mtd/mtdoops.c
@@ -335,7 +335,7 @@ static void mtdoops_console_sync(void)
 	cxt->ready = 0;
 	spin_unlock_irqrestore(&cxt->writecount_lock, flags);
 
-	if (mtd->panic_write && in_interrupt())
+	if (mtd->panic_write && (in_interrupt() || panic_on_oops))
 		/* Interrupt context, we're going to panic so try and log */
 		mtdoops_write(cxt, 1);
 	else
-- 
1.5.4.3

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

end of thread, other threads:[~2009-10-02 14:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-01 15:16 [PATCH 1/2] mtdoops: do not schedule work if we are going to die Aaro Koskinen
2009-10-01 15:16 ` [PATCH 2/2] OneNAND: OMAP: do not use DMA if oops in progress Aaro Koskinen
2009-10-02 14:18 ` [PATCH 1/2] mtdoops: do not schedule work if we are going to die Simon Kagstrom
2009-10-02 14:30   ` Aaro Koskinen
2009-10-02 14:40     ` Simon Kagstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.