Re: [PATCH] panic: Don't print redundant backtraces on oops

From: Andi Kleen
Date: Mon Dec 19 2011 - 13:34:23 EST



it?

I think the two problems are not related. My problem was that only one
CPU should execute panic. Andi's problem is that one (or more oops)
messages are scrolled away by a subsequent panic.

Yes it's just for making panic less chatty.

But I am not sure if Andi's patch solves all his problems. What e.g.
about panic_on_oom? Don't we have the same problem here?

Yes, it only solves it for this specific -- but common -- case. Or at least it was a case
that annoyed me and prompted me to write the patch :)

I had a patch some time ago for a xpanic() where the caller could pass in additional
flags, including one to disable the backtrace. But that was a much larger patch,
this was a simpler alternative.

-Andi

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