public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Foster <bfoster@redhat.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH] xfs: don't trigger fsync log force based on inode pin count
Date: Wed, 22 Apr 2015 13:13:23 -0400	[thread overview]
Message-ID: <20150422171322.GB6688@bfoster.bfoster> (raw)
In-Reply-To: <20150422161509.GA27237@infradead.org>

On Wed, Apr 22, 2015 at 09:15:09AM -0700, Christoph Hellwig wrote:
> On Wed, Apr 22, 2015 at 10:37:46AM -0400, Brian Foster wrote:
> > There are probably a couple different ways to handle this. We could log
> > the inode in the bmap cases in order to preserve the pincount check.
> 
> I'd favor that.  For one performance should be better, second we really
> need to dirty the inode anyway for v5 file systems as that's the
> mechanism used to increment di_changecount.
> 

Yeah, that's a good point. I noticed that in xfs_trans_log_inode() when
debugging but didn't think much about it since I reproduced on v4. I can
get performance back with the aforementioned cil push fix, but if the
path forward is behavior where the inode is going to be logged anyways,
that is decent reason to emulate such behavior in the pre-v5 case.

Note that we have the following in xfs_bmapi_write():

        if (bma.logflags)
                xfs_trans_log_inode(tp, ip, bma.logflags);

... and some other places. I don't reproduce this particular problem on
v5, so something else might be logging the inode here. That strikes me
as not what we want with regard to the change count, however..

Brian

> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2015-04-22 17:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-22 14:37 [PATCH] xfs: don't trigger fsync log force based on inode pin count Brian Foster
2015-04-22 16:15 ` Christoph Hellwig
2015-04-22 17:13   ` Brian Foster [this message]
2015-04-22 21:18     ` Dave Chinner
2015-04-22 22:02       ` Brian Foster
2015-04-22 22:06         ` Christoph Hellwig
2015-04-22 22:10           ` Brian Foster

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=20150422171322.GB6688@bfoster.bfoster \
    --to=bfoster@redhat.com \
    --cc=hch@infradead.org \
    --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