[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <49101E96.2010609@cn.fujitsu.com>
Date: Tue, 04 Nov 2008 18:06:14 +0800
From: Li Zefan <lizf@...fujitsu.com>
To: Ingo Molnar <mingo@...e.hu>
CC: LKML <linux-kernel@...r.kernel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>
Subject: Re: [PATCH] sched: add sanity check in partition_sched_domains()
> a small detail, i changed this:
>
>> + BUG_ON(dattr_new);
>
> to WARN_ON_ONCE().
>
> If there's a rare setup-time memory leak we dont want to crash the box
> via a BUG_ON(), as that only results in unhappy users. We want a
> WARN_ON_ONCE() so that we get nice bugreports and kerneloops.org
> coverage as well instead.
>
> We use BUG_ON() in new code only in the rarest of circumstances: if we
> absolutely want to bring down the box right there - because there's a
> serious risk of data corruption, security breach, etc.
>
I see the point, thx for the explanation. :)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists