All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lachlan McIlroy <lachlan@sgi.com>
To: David Chinner <dgc@sgi.com>
Cc: Christian Kujau <lists@nerdbynature.de>, xfs@oss.sgi.com
Subject: Re: lockdep annotations?
Date: Tue, 04 Sep 2007 10:51:44 +1000	[thread overview]
Message-ID: <46DCAC20.9080002@sgi.com> (raw)
In-Reply-To: <20070903090103.GG734179@sgi.com>

David Chinner wrote:
> On Mon, Sep 03, 2007 at 12:46:30PM +1000, Lachlan McIlroy wrote:
>> This is a locking inversion between the iolock and iprune_mutex.  I
>> hadn't seen this one before.  Was your system running low on memory
>> at the time?
>>
>> We can't drop the iolock in the write path so we'll have to avoid
>> acquiring the iolock in xfs_ireclaim() which means we'll need another
>> way to synchronise with xfs_sync_inodes().
> 
> I don't think a deadlock exists here - we have to be going through
> memory reclaim to hit this inversion, so the only place that we
> can deadlock is if we are holding the iprune_mutex across a memory
> allocation. I don't think we do that....
> 
> Not to mention that the inode we hold the iolock on won't be on the
> inode free list so we won't ever try to lock it during reclaim, either.
> 
Yep.  This is just another case where we've confused lockdep.

      reply	other threads:[~2007-09-04  0:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-01 21:06 lockdep annotations? Christian Kujau
2007-09-03  2:46 ` Lachlan McIlroy
2007-09-03  6:33   ` Christian Kujau
2007-09-03  9:01   ` David Chinner
2007-09-04  0:51     ` Lachlan McIlroy [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=46DCAC20.9080002@sgi.com \
    --to=lachlan@sgi.com \
    --cc=dgc@sgi.com \
    --cc=lists@nerdbynature.de \
    --cc=xfs@oss.sgi.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.