From: Peter Zijlstra <peterz@infradead.org>
To: Li Zefan <lizf@cn.fujitsu.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>,
LKML <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Paul Menage <menage@google.com>,
Arjan van de Ven <arjan@infradead.org>,
linux-fsdevel@vger.kernel.org
Subject: Re: [cgroup or VFS ?] INFO: possible recursive locking detected
Date: Tue, 10 Feb 2009 09:32:35 +0100 [thread overview]
Message-ID: <1234254755.4893.3.camel@laptop> (raw)
In-Reply-To: <4990EF3F.3010501@cn.fujitsu.com>
On Tue, 2009-02-10 at 11:06 +0800, Li Zefan wrote:
> > It seems to me we can simply put the new s_umount instance in a
> > different subclass. Its a bit unusual to use _nested for the outer lock,
> > but lockdep doesn't particularly cares about subclass order.
> >
> > If there's any issue with the callers of sget() assuming the s_umount
> > lock being of sublcass 0, then there is another annotation we can use to
> > fix that, but lets not bother with that if this is sufficient.
> >
> > Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
>
> Tested-by: Li Zefan <lizf@cn.fujitsu.com>
>
> Thanks!
>
> a minor comment
>
> > + * lock of the old one. Since these are clearly distrinct
>
> s/distrinct/distinct
Yes, someone else was kind enough to point that out as well :-)
Al, do you want a resend or will you fix that up when you add the patch
to your queue?
> BTW, I found another bug in current code:
Yep, looks good, freeing held locks makes lockdep unhappy.
> From: Li Zefan <lizf@cn.fujitsu.com>
> Date: Tue, 10 Feb 2009 10:55:53 +0800
> Subject: [PATCH] vfs: add missing unlock in sget()
>
> We should release s->s_umount before calling destroy_super(s).
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
> ---
prev parent reply other threads:[~2009-02-10 8:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-05 3:23 [cgroup or VFS ?] INFO: possible recursive locking detected Li Zefan
2009-01-08 3:45 ` Li Zefan
2009-02-09 11:23 ` Al Viro
2009-02-09 11:38 ` Li Zefan
2009-02-09 11:48 ` Peter Zijlstra
2009-02-10 3:06 ` Li Zefan
2009-02-10 4:37 ` Al Viro
2009-02-10 5:19 ` Li Zefan
2009-02-10 6:07 ` Al Viro
2009-02-10 9:25 ` Li Zefan
2009-02-12 6:14 ` Li Zefan
2009-02-10 8:32 ` 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=1234254755.4893.3.camel@laptop \
--to=peterz@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=arjan@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
--cc=menage@google.com \
--cc=viro@ZenIV.linux.org.uk \
/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