Re: [PATCH] make might_sleep() display the oopsing process

From: Arjan van de Ven
Date: Sat Aug 30 2008 - 12:04:20 EST


On Sat, 30 Aug 2008 10:45:20 -0400
Joe Korty <joe.korty@xxxxxxxx> wrote:

> On Fri, Aug 29, 2008 at 07:20:03PM -0400, Andrew Morton wrote:
> > On Thu, 28 Aug 2008 11:36:28 +0200
> > Ingo Molnar <mingo@xxxxxxx> wrote:
> >
> > > > Expand might_sleep's printk to indicate the oopsing process.
> > >
> > > good idea
> >
> > Why? I don't recall ever having been interested in this
> > information.
> >
> > (I shouldn't have to ask questions like this. Please spend a little
> > more time in preparing the patch descriptions).
>
> I wrote and used the patch once, as I wanted to know
> which program in a lengthy multiple-program test suite
> was triggering the problem. That made it easier coming
> up with a shortened test that would replicate the problem.
>
> However I only needed it that one time so this patch can
> be considered to be exceptionally optional :)

WARN() and WARN_ON() already print the oopsing process.
so if might_sleep() just calls one of those it already prints it.
If it doesn't call one of these.. maybe it should?


--
If you want to reach me at my work email, use arjan@xxxxxxxxxxxxxxx
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
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/