Linux filesystem development
 help / color / mirror / Atom feed
From: Nick Piggin <npiggin@suse.de>
To: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>,
	balbir@linux.vnet.ibm.com,
	Andrew Morton <akpm@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Eric Paris <eparis@redhat.com>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: lockdep warning with 2.6.29-rc6-mm1 (mmotm 24-feb-2009)
Date: Thu, 5 Mar 2009 08:00:45 +0100	[thread overview]
Message-ID: <20090305070045.GC11916@wotan.suse.de> (raw)
In-Reply-To: <20090304174115.GE25962@elte.hu>

On Wed, Mar 04, 2009 at 06:41:15PM +0100, Ingo Molnar wrote:
> 
> * Peter Zijlstra <peterz@infradead.org> wrote:
> 
> > On Wed, 2009-03-04 at 18:27 +0530, Balbir Singh wrote:
> > > I see the following on my machine. My understanding is that the
> > > lockdep warning is complaining about a potential deadlock while
> > > reclaiming, where we could end up waiting on holding inotify_mutex,
> > > and we could end up calling reclaim with inotify_mutex held.
> > > 
> > > The race seems rare, since one path shows a new inode being created
> > > and the other one being deleted. It seems like a false positive unless
> > > the inode's in question turn out to be potentially the same.
> > 
> > Its not a false positive until you can guarantee the inodes will _never_
> > be the same.
> > 
> > This thing has been reported numerous times, Ingo even posted 
> > a potential fix for it, Nick poked the inotify people to speak 
> > up, but they have so far been silent on the issue :-(
> 
> that particular fix is upstream, via:
> 
>   3023a3e: inotify: fix GFP_KERNEL related deadlock
> 
> so does this reproduce with latest .29-rc7-ish kernels too - or 
> do we have some other problem in this area too?

Well as I said, I think it is just a bandaid to shut up lockdep,
because I think inotify always is guaranteed to have a ref on
the inode at this point so it should not be subject to reclaim.


  reply	other threads:[~2009-03-05  7:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090304125709.GA6251@balbir.in.ibm.com>
2009-03-04 13:27 ` lockdep warning with 2.6.29-rc6-mm1 (mmotm 24-feb-2009) Peter Zijlstra
2009-03-04 17:41   ` Ingo Molnar
2009-03-05  7:00     ` Nick Piggin [this message]
2009-03-06 15:38       ` Balbir Singh
2009-03-06 15:42         ` Eric Paris

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=20090305070045.GC11916@wotan.suse.de \
    --to=npiggin@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=balbir@linux.vnet.ibm.com \
    --cc=eparis@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.org \
    /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