LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Dave Hansen <haveblue@us.ibm.com>,
penguin-kernel@i-love.sakura.ne.jp, linux-kernel@vger.kernel.org,
Christoph Hellwig <hch@lst.de>, Greg KH <greg@kroah.com>,
Kay Sievers <kay.sievers@vrfy.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: [2.6.25-rc5-mm1] BUG() at mnt_want_write().
Date: Wed, 12 Mar 2008 10:52:18 -0600 [thread overview]
Message-ID: <20080312165218.GB613@parisc-linux.org> (raw)
In-Reply-To: <1205313918.8514.215.camel@twins>
On Wed, Mar 12, 2008 at 10:25:18AM +0100, Peter Zijlstra wrote:
> On Tue, 2008-03-11 at 20:22 -0700, Andrew Morton wrote:
> > > > INFO: trying to register non-static key.
>
> It means the lock_class_key ended up in non-static storage.
>
> In practise it often means you initialized a on-stack structure
> incorrectly. DECLARE_WAIT_QUEUE_HEAD() vs
> DECLARE_WAIT_QUEUE_HEAD_ONSTACK() for example.
>
> /me tries to untangle the sysfs stuff, finds nothing wrong, looks at
> semaphore code, and.. the winner is: Matthew messed up the semaphores.
>
> Tssk, rewriting locking primitives and not using lockdep...
I verified my use of spinlocks by hand ;-)
> Compile tested defconfig with lockdep and !lockdep.
Thanks for the patch. I'll merge it into my generic semaphore patch
and add credit for you if that's OK -- no point in leaving a breakage
point around for some innocent bisecter to stumble over.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
next prev parent reply other threads:[~2008-03-12 16:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 1:37 penguin-kernel
2008-03-12 3:03 ` Dave Hansen
2008-03-12 3:22 ` Andrew Morton
2008-03-12 9:25 ` Peter Zijlstra
2008-03-12 16:52 ` Matthew Wilcox [this message]
2008-03-13 0:21 ` Tetsuo Handa
2008-03-13 20:41 ` fix for boot-time mnt_want_write() bug Dave Hansen
2008-03-14 0:15 ` Tetsuo Handa
2008-03-12 5:46 ` [2.6.25-rc5-mm1] BUG() at mnt_want_write() Tetsuo Handa
2008-03-12 6:35 ` Tetsuo Handa
2008-03-12 3:43 ` Dave Hansen
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=20080312165218.GB613@parisc-linux.org \
--to=matthew@wil.cx \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=greg@kroah.com \
--cc=haveblue@us.ibm.com \
--cc=hch@lst.de \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=penguin-kernel@i-love.sakura.ne.jp \
--subject='Re: [2.6.25-rc5-mm1] BUG() at mnt_want_write().' \
/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
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).