public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Christoph Hellwig <hch@lst.de>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH 2/2] kill xfs_lock_dir_and_entry
Date: Thu, 24 Jul 2008 16:22:00 +1000	[thread overview]
Message-ID: <20080724062200.GS6761@disturbed> (raw)
In-Reply-To: <20080723081315.GA3863@lst.de>

On Wed, Jul 23, 2008 at 10:13:15AM +0200, Christoph Hellwig wrote:
> ping^3 - this time for real :)
> 
> On Fri, Jun 27, 2008 at 03:06:27PM +0200, Christoph Hellwig wrote:
> > ping^2
> > 
> > On Tue, May 20, 2008 at 08:36:39AM +0200, Christoph Hellwig wrote:
> > > ping?
> > > 
> > > On Fri, May 02, 2008 at 12:58:03PM +0200, Christoph Hellwig wrote:
> > > > When multiple inodes are locked in XFS it happens in order of the inode
> > > > number, with the everything but the first inode trylocked if any of
> > > > the previous inodes is in the AIL.
> > > > 
> > > > Except for the sorting of the inodes this logic is implemented in
> > > > xfs_lock_inodes, but also partially duplicated in xfs_lock_dir_and_entry
> > > > in a particularly stupid way adds a lock roundtrip if the inode ordering
> > > > is not optimal.
> > > > 
> > > > This patch adds a new helper xfs_lock_two_inodes that takes two inodes
> > > > and locks them in the most optimal way according to the above locking
> > > > protocol and uses it for all places that want to lock two inodes.
> > > > 
> > > > The only caller of xfs_lock_inodes is xfs_rename which might lock up to
> > > > four inodes.

Looks good and passes xfsqa here....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

      reply	other threads:[~2008-07-24  6:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-02 10:58 [PATCH 2/2] kill xfs_lock_dir_and_entry Christoph Hellwig
2008-05-20  6:36 ` Christoph Hellwig
2008-06-27 13:06   ` Christoph Hellwig
2008-07-23  8:13     ` Christoph Hellwig
2008-07-24  6:22       ` Dave Chinner [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=20080724062200.GS6761@disturbed \
    --to=david@fromorbit.com \
    --cc=hch@lst.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox