Re: IRQ off latency of printk is very high

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mathieu Desnoyers
Date: Thursday, November 1, 2007 - 8:27 am

* Pavel Machek (pavel@ucw.cz) wrote:


The main interest seems to be to protect from mixed printk output
between different CPUs in process context. I don't think it would be
that bad if interrupts come and output error messages in the middle of a
printk, isn't it ?

therefore, could we do something like :


if (!in_irq())
  spin_lock(&logbuf_lock);
...
if (!in_irq())
  spin_unlock(&logbuf_lock);

? (yes, this is a crazy idea)

Mathieu



-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
IRQ off latency of printk is very high, Tim Bird, (Thu Oct 25, 12:44 pm)
Re: IRQ off latency of printk is very high, Matt Mackall, (Thu Oct 25, 1:19 pm)
Re: IRQ off latency of printk is very high, Tim Bird, (Thu Oct 25, 2:15 pm)
Re: IRQ off latency of printk is very high, Mathieu Desnoyers, (Thu Oct 25, 3:28 pm)
Re: IRQ off latency of printk is very high, Tim Bird, (Thu Oct 25, 3:52 pm)
Re: IRQ off latency of printk is very high, Matt Mackall, (Thu Oct 25, 4:12 pm)
Re: IRQ off latency of printk is very high, Tim Bird, (Thu Oct 25, 4:41 pm)
Re: IRQ off latency of printk is very high, Matt Mackall, (Thu Oct 25, 6:23 pm)
Re: IRQ off latency of printk is very high, Pavel Machek, (Mon Oct 29, 11:54 am)
Re: IRQ off latency of printk is very high, Mathieu Desnoyers, (Thu Nov 1, 8:27 am)
Re: IRQ off latency of printk is very high, Pavel Machek, (Thu Nov 1, 2:11 pm)
Re: IRQ off latency of printk is very high, Mathieu Desnoyers, (Thu Nov 1, 3:19 pm)