linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* scheduler BUGON lifespan
@ 2004-11-29 21:11 Darren Hart
  2004-11-29 21:29 ` Andrew Morton
  2004-11-29 22:32 ` Ingo Molnar
  0 siblings, 2 replies; 3+ messages in thread
From: Darren Hart @ 2004-11-29 21:11 UTC (permalink / raw)
  To: lkml; +Cc: Andrew Morton, Nick Piggin, Ingo Molnar

I submitted a patch to active_load_balance() that was accepted into mm
and then mainline.  The patch included a fix to prevent the system
entering what should have been an impossible state.  The previous code
tested for it and then continued, rather than crashing or complaining.
My patch added a BUGON(impossible state) just in case by some fluke it
still happened.  How long should this BUGON remain in the kernel?  A
month, a year?  Is there an accepted duration for such safety nets?

Thanks,

-- 
Darren Hart <dvhltc@us.ibm.com>
IBM Linux Technology Center

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: scheduler BUGON lifespan
  2004-11-29 21:11 scheduler BUGON lifespan Darren Hart
@ 2004-11-29 21:29 ` Andrew Morton
  2004-11-29 22:32 ` Ingo Molnar
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2004-11-29 21:29 UTC (permalink / raw)
  To: Darren Hart; +Cc: linux-kernel, piggin, mingo

Darren Hart <dvhltc@us.ibm.com> wrote:
>
> How long should this BUGON remain in the kernel?

Until someone thinks to remove it, it seems.  There is no established
protocol or period.  Often someone will say "hey, this is silly" and will
remove it - usually as part of some wider work.

If you think a BUG or BUG_ON doesn't need to be there any more, feel free
to send a patch..


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: scheduler BUGON lifespan
  2004-11-29 21:11 scheduler BUGON lifespan Darren Hart
  2004-11-29 21:29 ` Andrew Morton
@ 2004-11-29 22:32 ` Ingo Molnar
  1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2004-11-29 22:32 UTC (permalink / raw)
  To: Darren Hart; +Cc: lkml, Andrew Morton, Nick Piggin


* Darren Hart <dvhltc@us.ibm.com> wrote:

> I submitted a patch to active_load_balance() that was accepted into mm
> and then mainline.  The patch included a fix to prevent the system
> entering what should have been an impossible state.  The previous code
> tested for it and then continued, rather than crashing or complaining.
> My patch added a BUGON(impossible state) just in case by some fluke it
> still happened.  How long should this BUGON remain in the kernel?  A
> month, a year?  Is there an accepted duration for such safety nets?

it's pretty random how long it survives. Sometimes i remove one after
never having seen it for months/years and grepping lkml and googling
around for the file & line. The BUG_ON()s are pretty cheap, as they
often check what is being fetched anyway.

	Ingo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-11-29 22:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-29 21:11 scheduler BUGON lifespan Darren Hart
2004-11-29 21:29 ` Andrew Morton
2004-11-29 22:32 ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).