Re: [PATCH][RFC] Spinlock-timeout

From: Jan-Benedict Glaw
Date: Thu Jun 10 2004 - 14:29:20 EST


On Thu, 2004-06-10 13:44:52 -0500, Jake Moilanen <moilanen@xxxxxxxxxxxxxx>
wrote in message <1086893091.3476.37.camel@xxxxxxxxxxxxxxxxxxxxxxxxxx>:
> On Sat, 2004-06-05 at 15:51, Jan-Benedict Glaw wrote:
> > On Sat, 2004-06-05 15:31:26 -0500, Jake Moilanen <moilanen@xxxxxxxxxxxxxx>
> > wrote in message <1086467486.20906.59.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
> > > Here's a patch that will BUG() when a spinlock is held for longer then X
> > > seconds. It is useful for catching deadlocks since not all archs have a
> > > NMI watchdog.
> > I like the idea. However, I don't like touching all arch's Kconfig
> > files. I think it's better to either put this into ./lib/Kconfig (well,
> > doesn't really fit there), ot (even better:) put it into the Debug
> > Kconfig file.
>
> I think you're right that lib/Kconfig would not be the right place, but
> I don't think there is a debug Kconfig. I tried keeping the Kconfig

Not yet:) Somebody is working towards getting all the different debug
options into a central Kconfig file. This was on LKML some four weeks
ago...

> additions w/ CONFIG_DEBUG_SPINLOCK. The other option is to make a debug
> Kconfig, but every arch seems pretty different in what they have for
> their debug section.

As I said, it's been worked on:)

MfG, JBG

--
Jan-Benedict Glaw jbglaw@xxxxxxxxxx . +49-172-7608481
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak!
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature