Re: deadlock caused by printk

From: Peter Zijlstra
Date: Fri Mar 25 2011 - 10:48:28 EST


On Fri, 2011-03-25 at 22:30 +0800, Ming Lei wrote:
>
> But seems ftrace can't dump out the messages if system hangs,

True.

> so could
> we introduce a smart and simple "printk" which can be used in any
> contexts?

I think you could use early_printk() for that, it doesn't bother with
all the syslog muck.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/