From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Simon Arlott <simon@fire.lp0.eu>
Cc: Jan Kara <jack@suse.cz>,
Andrew Morton <akpm@linux-foundation.org>,
folkert@vanheusden.com, linux-kernel@vger.kernel.org
Subject: Re: [2.6.22] circular lock detected
Date: Fri, 04 Jan 2008 10:21:55 +0100 [thread overview]
Message-ID: <1199438515.7143.3.camel@twins> (raw)
In-Reply-To: <477DE2F9.2050208@simon.arlott.org.uk>
[-- Attachment #1: Type: text/plain, Size: 2478 bytes --]
On Fri, 2008-01-04 at 07:40 +0000, Simon Arlott wrote:
> On 25/09/07 09:46, Jan Kara wrote:
> > On Tue 25-09-07 10:02:43, Peter Zijlstra wrote:
> >> On Mon, 3 Sep 2007 16:01:35 +0200 Jan Kara <jack@suse.cz> wrote:
> >>
> >> > On Mon 03-09-07 05:49:59, Andrew Morton wrote:
> >> > > > On Mon, 3 Sep 2007 14:27:02 +0200 Jan Kara <jack@suse.cz> wrote:
> >> > > > > > On Fri, 24 Aug 2007 23:00:33 +0200 Folkert van Heusden <folkert@vanheusden.com> wrote:
> >>
> >> > > > > Has been reported before, but I don't recall whether we fixed it. Jan,
> >> > > > > do you know>?
> >> > > > I think we at least found a solution: Teach lockdep that I_MUTEX for
> >> > > > different filesystems is different. Peter Zilstra wrote a patch for that
> >> > > > and Folkert even confirmed that it fixes the problem for him. I'm not
> >> > > > sure what happened with the patch afterwards though. Adding Peter to CC
> >> > > > :).
> >> > >
> >> > > But this is a tty_lock-versus-dqptr_sem ranking error. Unrelated to i_mutex?
> >> > The final report is for this ranking but the locking chain (if I understand it
> >> > right) is:
> >> > tty_mutex (con_close) -> i_mutex (sysfs: remove_subdir)
> >> > i_mutex (do_truncate) -> i_alloc_sem (notify_change) -> truncate_mutex (ext3_truncate)
> >> > truncate_mutex (ext3_get_blocks_handle) -> dqptr_sem (dquot_alloc_space)
> >> >
> >> > So it complains about tty_mutex vs dqptr_sem (I don't know why it does not
> >> > complain about tty_mutex vs i_mutex) but the wrong link in the chain is
> >> > that i_mutex from remove_subdir() [sysfs] and i_mutex from do_truncate()
> >> > [ext3] are different and should never depend on each other...
> >> >
> >>
> >> Found it again.
> > Cool, thanks Peter. Andrew, would you put it into -mm? This should take care of
> > the false lockdep warnings from the quota code. If I recall correctly, one
> > of the reporters even confirmed it fixes the problem for him.
> > The patch looks fine. You can add:
> > Signed-off-by: Jan Kara <jack@suse.cz>
> >
> > Honza
> >
> >> Give each filesystem its own inode lock class. The various filesystems have
> >> different locking order wrt the inode locks; esp. the pseudo filesystems
> >> differ from the rest.
> >>
> >> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
>
> This patch still doesn't exist in 2.6.23.9 and the warning isn't fixed...
It would have been if you'd used .24-rc :-)
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2008-01-04 9:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 21:00 [2.6.22] circular lock detected Folkert van Heusden
2007-08-26 23:03 ` Michal Piotrowski
2007-09-02 11:55 ` Andrew Morton
2007-09-02 17:11 ` Folkert van Heusden
2007-09-03 12:27 ` Jan Kara
2007-09-03 12:49 ` Andrew Morton
2007-09-03 14:01 ` Jan Kara
2007-09-25 8:02 ` Peter Zijlstra
2007-09-25 8:46 ` Jan Kara
2008-01-04 7:40 ` Simon Arlott
2008-01-04 9:21 ` Peter Zijlstra [this message]
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=1199438515.7143.3.camel@twins \
--to=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=folkert@vanheusden.com \
--cc=jack@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=simon@fire.lp0.eu \
/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