mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: eike-kernel@sf-tec.de, linux-kernel@vger.kernel.org, aia21@cantab.net
Subject: Re: [BUG?] possible recursive locking detected
Date: Thu, 27 Jul 2006 00:24:32 -0700	[thread overview]
Message-ID: <20060727002432.0f0c14a5.akpm@osdl.org> (raw)
In-Reply-To: <44C86271.9030603@yahoo.com.au>

On Thu, 27 Jul 2006 16:51:29 +1000
Nick Piggin <nickpiggin@yahoo.com.au> wrote:

> > We hold the ext2 directory mutex, and ntfs_put_inode is trying to take an
> > ntfs i_mutex.  Not a deadlock as such, but it could become one in ntfs if
> > ntfs ever does a __GFP_WAIT allocation inside i_mutex, which it surely
> > does.
> 
> Though it should be using GFP_NOFS, right? So the dcache shrinker would
> not reenter the fs in that case.

Sort-of, arguably.  Many years ago, holding i_mutex (i_sem) was considered
to be "in the fs" and one should use GFP_NOFS.

(This code dates from the ext2 directory-in-pagecache conversion - it's
2.4 stuff.)

It's better, of course, to use GFP_HIGHUSER for pagecache so we should aim
to get this working.  And that means don't-take-i_mutex-on-the-reclaim-path.

We quite possibly are doing that in other places, too.

> I'm surprised ext2 is allocating with __GFP_FS set, though. Would that
> cause any problem?

It might, if ext2 takes i_mutex on the reclaim path.  But it doesn't.


  parent reply	other threads:[~2006-07-27  7:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-26 16:05 Rolf Eike Beer
2006-07-27  5:53 ` Andrew Morton
2006-07-27  6:51   ` Nick Piggin
2006-07-27  7:15     ` Anton Altaparmakov
2006-07-27  7:38       ` Andrew Morton
2006-07-27  8:19         ` Anton Altaparmakov
2006-07-27  8:53           ` Andrew Morton
2006-07-27  9:28             ` Anton Altaparmakov
2006-07-27  9:46               ` Ingo Molnar
2006-07-27 14:31                 ` Anton Altaparmakov
2006-07-27 14:45                   ` Ingo Molnar
2006-07-27 18:04                     ` Andrew Morton
2006-07-27  9:18           ` Nick Piggin
2006-07-27  9:35             ` Anton Altaparmakov
2006-07-27 10:02               ` Nick Piggin
2006-07-27 12:30                 ` Anton Altaparmakov
2006-07-27  7:24     ` Andrew Morton [this message]
2006-07-27  7:29   ` Arjan van de Ven

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=20060727002432.0f0c14a5.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=aia21@cantab.net \
    --cc=eike-kernel@sf-tec.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    /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

all inboxes | Powered by JetHome®