RE: [PATCH] printk: fixing the deadlock when calling printk in nmihandle

From: Peter Zijlstra
Date: Wed Jul 04 2012 - 10:13:02 EST


On Wed, 2012-07-04 at 16:09 +0200, Peter Zijlstra wrote:
> On Wed, 2012-07-04 at 15:39 +0200, Peter Zijlstra wrote:
> > > Anyway, in nmi handler, calling printk is dangerous. This patch is for this case.
> >
> > But its ugly and decreases reliability.. Your 'solution' is to
> > basically ignore serialization and pray, that's not a solution, that's
> > gambling.
>
> If you want to fix it, do something like:
>
> http://marc.info/?l=linux-kernel&m=132446646923333


Note that the one 'down' side of this is that the folks who care about
logbuf content might get upset since we don't put all msgs in there
anymore.

These would be the kmsg_dump users..



--
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/