From: Jan Kara <jack@suse.cz>
To: Fengguang Wu <fengguang.wu@intel.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk>,
Sasha Levin <levinsasha928@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Dave Jones <davej@redhat.com>,
Kamal Mostafa <kamal@canonical.com>,
"Peter M. Petrakis" <peter.petrakis@canonical.com>,
Dann Frazier <dann.frazier@canonical.com>,
Massimo Morana <massimo.morana@canonical.com>,
Jan Kara <jack@suse.cz>,
linux-fsdevel@vger.kernel.org
Subject: Re: mq: INFO: possible circular locking dependency detected
Date: Wed, 15 Aug 2012 00:09:27 +0200 [thread overview]
Message-ID: <20120814220927.GN7122@quack.suse.cz> (raw)
In-Reply-To: <20120808075439.GA20645@localhost>
On Wed 08-08-12 15:54:39, Wu Fengguang wrote:
> On Wed, Aug 08, 2012 at 03:17:38PM +0800, Fengguang Wu wrote:
> > On Tue, Aug 07, 2012 at 07:39:55AM +0100, Al Viro wrote:
> > > On Tue, Aug 07, 2012 at 01:04:12PM +0800, Fengguang Wu wrote:
> > >
> > > > FYI, here is a different back trace on that commit.
> > > >
> > > > [ 3.255043] ======================================================
> > > > [ 3.255052] [ INFO: possible circular locking dependency detected ]
> > > > [ 3.255052] 3.5.0-rc6-bisect-00355-geb04c28 #4 Not tainted
> > > > [ 3.255052] -------------------------------------------------------
> > > > [ 3.255052] init/1 is trying to acquire lock:
> > > > [ 3.255052] (&mm->mmap_sem){++++++}, at: [<ffffffff81180d00>] might_fault+0x70/0xe0
> > > > [ 3.255052]
> > > > [ 3.255052] but task is already holding lock:
> > > > [ 3.255052] (&sb->s_type->i_mutex_key){+.+.+.}, at: [<ffffffff811d191e>] vfs_readdir+0x6e/0x130
> > >
> > > Do you see any similar with the _next_ commit?
> >
> > Stress tests show that the next commit is free from both the "circular
> > locking dependency" issues.
>
> Sorry.. but this still remains for commit 5d37e9e6("fs: Skip atime
> update on frozen filesystem"):
>
> [ 175.588560] [ INFO: possible circular locking dependency detected ]
> [ 175.588560] 3.5.0-rc6-bisect-00356-g5d37e9e6 #46 Not tainted
> [ 175.588560] -------------------------------------------------------
> [ 175.588560] trinity-child0/493 is trying to acquire lock:
> [ 175.588560] (&sb->s_type->i_mutex_key#14){+.+.+.}, at: [<ffffffff811cc4fe>] vfs_unlink+0x6e/0x1d0
> [ 175.588560]
> [ 175.588560] but task is already holding lock:
> [ 175.588560] (sb_writers#11){.+.+.+}, at: [<ffffffff811e40af>] mnt_want_write+0x2f/0x90
> [ 175.588560]
> [ 175.588560] which lock already depends on the new lock.
OK, this is a theoretical deadlock since mqueue (virtual) filesystem cannot
really be frozen. But we should convert the mqueue code to deal with new
lock ordering of i_mutex and mnt_want_write() anyway to make lockdep happy
if anything... That file somehow escaped my conversion efforts. I'll send a
fix tomorrow.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
next prev parent reply other threads:[~2012-08-14 22:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <501D0093.2090108@gmail.com>
2012-08-05 17:08 ` mq: INFO: possible circular locking dependency detected Fengguang Wu
2012-08-07 5:04 ` Fengguang Wu
2012-08-07 6:39 ` Al Viro
2012-08-08 7:17 ` Fengguang Wu
2012-08-08 7:54 ` Fengguang Wu
2012-08-14 22:09 ` Jan Kara [this message]
2012-08-14 22:13 ` Al Viro
2012-08-14 22:29 ` Jan Kara
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=20120814220927.GN7122@quack.suse.cz \
--to=jack@suse.cz \
--cc=dann.frazier@canonical.com \
--cc=davej@redhat.com \
--cc=fengguang.wu@intel.com \
--cc=kamal@canonical.com \
--cc=levinsasha928@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=massimo.morana@canonical.com \
--cc=peter.petrakis@canonical.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;
as well as URLs for NNTP newsgroup(s).