Re: [PATCH 01/20 -v5] printk - dont wakeup klogd with interrupts disabled

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mathieu Desnoyers <mathieu.desnoyers@...>
Cc: Daniel Walker <dwalker@...>, Steven Rostedt <rostedt@...>, LKML <linux-kernel@...>, Ingo Molnar <mingo@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Peter Zijlstra <a.p.zijlstra@...>, Christoph Hellwig <hch@...>, Gregory Haskins <ghaskins@...>, Arnaldo Carvalho de Melo <acme@...>, Thomas Gleixner <tglx@...>, Sam Ravnborg <sam@...>, Frank Ch. Eigler <fche@...>, Jan Kiszka <jan.kiszka@...>, John Stultz <johnstul@...>, Arjan van de Ven <arjan@...>, Steven Rostedt <srostedt@...>
Date: Wednesday, January 23, 2008 - 1:49 pm

Mathieu Desnoyers wrote:

!oops_in_progress is already inside wake_up_klogd().

Also, I think you'd want that first '!' inside the parens.

I've been working on a system to handle deferred displaying
of printk messages, when printk is called in interrupt context.
Currently on a serial console if printk is called with
ints disabled, it can hold interrupts off for up to 20
milliseconds.

My solution was to set up a worker thread to handle deferred
printk activity.  I don't think this works for the oops case,
because you don't want to defer the output.  However, I can
post this code if you think it would help with this problem.

I hesitate to just drop the call to wake_up_klogd() without
some kind of mechanism call it later.  Waiting until the
next printk will work to drain the buffer, but could lead
to indefinite intervals with printks waiting to be logged.
 -- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 01/20 -v5] printk - dont wakeup klogd with interr..., Mathieu Desnoyers, (Wed Jan 23, 1:25 pm)
Re: [PATCH 01/20 -v5] printk - dont wakeup klogd with interr..., Tim Bird, (Wed Jan 23, 1:49 pm)
[PATCH] defer printks in irqs, Tim Bird, (Thu Jan 24, 6:42 pm)
Re: [PATCH] defer printks in irqs, Peter Zijlstra, (Thu Jan 24, 6:48 pm)
Re: [PATCH] defer printks in irqs, Tim Bird, (Thu Jan 24, 7:23 pm)
Re: [PATCH] defer printks in irqs, Andrew Morton, (Sun Jan 27, 2:01 am)
Re: [PATCH] defer printks in irqs, Tim Bird, (Mon Jan 28, 5:14 pm)
Re: [PATCH 01/20 -v5] printk - dont wakeup klogd with interr..., Mathieu Desnoyers, (Wed Jan 23, 1:32 pm)