From: Li Zefan <lizf@cn.fujitsu.com>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: 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: Mon, 09 Feb 2009 19:38:15 +0800 [thread overview]
Message-ID: <499015A7.3040400@cn.fujitsu.com> (raw)
In-Reply-To: <20090209112321.GW28946@ZenIV.linux.org.uk>
Al Viro wrote:
> On Thu, Jan 08, 2009 at 11:45:43AM +0800, Li Zefan wrote:
>> Hi Al Viro,
>>
>> I hacked into the kernel with the patch below (I think It's ok for me
>> to comment out bdev->bd_mount_sem for testing):
>
>> And ran 2 threads:
>> for ((; ;)) # thread 1
>> {
>> mount -t ext3 /dev/sda9 /mnt1
>> umount /mnt1
>> }
>>
>> for ((; ;)) # thread 2
>> {
>> mount -t ext3 /dev/sda9 /mnt2
>> umount /mnt2
>> }
>>
>> And I got the same lockdep warning immediately, so I think it's
>> VFS's issue.
>
> It's a lockdep issue, actually. It _is_ a false positive; we could get rid
Yes, I believe it's a false positive when I looked into this issue.
> of that if we took destroy_super(s); just before grab_super(), but I really
> do not believe that there's any point.
>
> Frankly, I'd rather see if there's any way to teach lockdep that this instance
> of lock is getting initialized into "one writer" state and that yes, we know
> that it's not visible to anyone, so doing that is safe, TYVM, even though
> we are under spinlock. Then take that sucker to just before set().
>
It would be nice if we can do this way..
> In any case, I really do not believe that it might have anything to do with
> the WARN_ON() from another thread...
>
agreed. I don't think they are related, and that's why I sent 2 different reports.
next prev parent reply other threads:[~2009-02-09 11:39 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 [this message]
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
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=499015A7.3040400@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=arjan@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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