All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Staubach <staubach@redhat.com>
To: NeilBrown <neilb@suse.de>
Cc: "J. Bruce Fields" <bfields@fieldses.org>,
	Christoph Hellwig <hch@lst.de>,
	jean-noel.cordenner@bull.net, linux-fsdevel@vger.kernel.org
Subject: Re: i_version changes
Date: Wed, 13 Feb 2008 16:32:08 -0500	[thread overview]
Message-ID: <47B361D8.1070708@redhat.com> (raw)
In-Reply-To: <43290.192.168.1.70.1202937559.squirrel@neil.brown.name>

NeilBrown wrote:
> On Thu, February 14, 2008 7:26 am, J. Bruce Fields wrote:
>
>   
>> It's not OK to update it only sometimes.  If updates are made while nfsd
>> isn't running, those needed to be reflected in the change attribute, so
>> the changes aren't missed when nfsd comes back up.
>>     
>
> For NFSD's needs, it is only necessary that changes in i_version that are
> potentially visible over NFS actually be stored on disk.
>
> You could come up with an interface where NFSD sets a flag when it reads
> i_version, and changes to the file only change i_version if the flag is
> set (at which point the flag is cleared).
>
> This would give fully correct NFS semantics, and no overhead when NFS access
> is not in use
>
>   

I don't think that this is quite true.  If the file is changed
when the NFS server is not running, then the value of i_version
which is used when the NFS server starts up again must be
different than the value which was previously used when the NFS
server was previously running.

Is the perceived performance hit really going to be as large
as suspected?  We already update the time fields fairly often
and we don't pay a huge penalty for those, or at least not a
penalty that we aren't willing to pay.  Has anyone measured
the cost?

    Thanx...

       ps

> This flag would need to be stored in stable storage too, so probably easiest
> to make it the least significant bit of i_version.
>
> Of course then the semantics of the new i_version are very different to
> the old i_version, so maybe we need two fields in the inode....
>
> NeilBrown
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   


  reply	other threads:[~2008-02-13 21:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-10  7:30 i_version changes Christoph Hellwig
2008-02-12 20:06 ` J. Bruce Fields
2008-02-13  9:25   ` Andreas Dilger
2008-02-13 12:52   ` Christoph Hellwig
2008-02-13 14:07     ` Trond Myklebust
2008-02-13 15:12       ` Andreas Dilger
2008-02-13 20:26     ` J. Bruce Fields
2008-02-13 21:19       ` NeilBrown
2008-02-13 21:32         ` Peter Staubach [this message]
2008-02-13 22:06           ` NeilBrown
2008-02-14 14:34             ` Peter Staubach
2008-02-14  8:40           ` Jean noel Cordenner
2008-02-14 14:38             ` Peter Staubach
2008-02-15 10:31               ` Jean noel Cordenner
2008-02-13 21:36         ` J. Bruce Fields

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=47B361D8.1070708@redhat.com \
    --to=staubach@redhat.com \
    --cc=bfields@fieldses.org \
    --cc=hch@lst.de \
    --cc=jean-noel.cordenner@bull.net \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=neilb@suse.de \
    /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.