Re: [PATCH] [1/2] kernel error reporting (revised)

James Morris
2003-07-19T23:37:59Z

On Fri, 18 Jul 2003, Jim Keniston wrote:

> > Yes, this makes sense. At the kerror.c level, just return -EDEADLK if in_irq().
> > Delay packet delivery (via a tasklet, as before) at the evlog.c level instead.
> > That way, we know at the evlog.c level (in the tasklet) whether the event packet
> > was delivered to anybody, and can paraphrase it to printk if it wasn't.
> >
> > Is this the sort of thing you had in mind?

Not exactly -- I don't think the logging framework should do any irq
detection. The caller should either know if its in an interrupt, or do
the detection itself.

- James
--
James Morris
<jmorris@intercode.com.au>