public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Salman Qazi <sqazi@google.com>
Cc: linux-kernel@vger.kernel.org, Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH] Fix a complex race in hrtimer code.
Date: Mon, 11 Oct 2010 16:23:56 -0700	[thread overview]
Message-ID: <20101011162356.cd0ddcc1.akpm@linux-foundation.org> (raw)
In-Reply-To: <AANLkTi=Q=09b8UPcNm0sXGebYQKP3cfxroy+kLWP8EQ_@mail.gmail.com>

On Mon, 11 Oct 2010 16:18:52 -0700
Salman Qazi <sqazi@google.com> wrote:

> On Mon, Oct 11, 2010 at 3:43 PM, Andrew Morton
> <akpm@linux-foundation.org> wrote:
>
> > Poeple are using BUG waaaaay too often.
> >
> 
> If people are attentive about WARN_ON_ONCE, then I suppose that is a
> better alternative.
> 
> One of the reasons why I personally like BUG_ON is that it catches
> problems early and makes people look (i.e. one can't ignore it, just
> because one didn't notice, understand or care) before it compounds any
> further.  It is very hard to debug a corrupted radix tree.  It is much
> easier to understand and fix the fact that our assumptions regarding
> the hrtimer state and locking are incorrect.
> 
> I'd rather have a BUG_ON firing 100 times, close to the root cause,
> instead of one case of unexplained data corruption far from the root
> cause.  Just my $0.02.

You're assuming that you are the one who observes the BUG_ON.  In a
large number of cases (probably the majority) it's some random person
on another continent.  Their box is dead and after a reboot there's
nothing in the logs.  Now what?


  reply	other threads:[~2010-10-11 23:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-08  2:33 [PATCH] Fix a complex race in hrtimer code Salman Qazi
2010-10-08 18:01 ` Salman Qazi
2010-10-11 22:43 ` Andrew Morton
2010-10-11 23:18   ` Salman Qazi
2010-10-11 23:23     ` Andrew Morton [this message]
2010-10-11 23:43       ` Salman Qazi
2010-10-12  0:02         ` Salman Qazi
2010-10-12  8:49           ` Thomas Gleixner
2010-10-12 14:25             ` Salman Qazi
2010-10-14 11:34               ` [tip:timers/urgent] hrtimer: Preserve timer state in remove_hrtimer() tip-bot for Salman Qazi
2010-10-14 13:23                 ` Peter Zijlstra
2010-10-14 13:34                   ` Thomas Gleixner
2010-10-12 14:28             ` [PATCH] Fix a complex race in hrtimer code Salman Qazi
2010-10-12 16:54               ` Thomas Gleixner
2010-10-12 17:38                 ` Salman Qazi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101011162356.cd0ddcc1.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sqazi@google.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox