All of lore.kernel.org
 help / color / mirror / Atom feed
From: MARTINET Dominique <dominique.martinet@cea.fr>
To: Eric Van Hensbergen <ericvh@gmail.com>
Cc: V9FS Developers <v9fs-developer@lists.sourceforge.net>,
	linux-fsdevel@vger.kernel.org
Subject: Re: [RFC PATCH] First RFC version of a new cache=mmap model.
Date: Tue, 03 Sep 2013 16:44:56 +0200	[thread overview]
Message-ID: <5225F5E8.9020604@cea.fr> (raw)
In-Reply-To: <CAFkjPTnU6r+BD84-TkLGV18vsPvTF7+x3KNhN4ZHor-qx698fg@mail.gmail.com>

On 09/03/13 16:24, Eric Van Hensbergen wrote:
> Interesting, do me a favor and cross-post to at least linux-fsdevel --
> there have been some strong objections from the rest of the community on
> similar approaches in the past, and I'd rather we encounter them earlier
> rather than when I try to push the patch upstream.  The lack of
> consistency is pretty nasty, we'll need a big disclaimer in the
> documentation if we decide to take it forward.  You may also want to
> cross-check some of my earlier efforts (back in 2.6.14 timeframe IIRC)
> if you haven't already.  I had some hackery to try and force things
> through sooner.

Right, sorry about this, reposted it to everyone right now.

> FWIW, the right approach is probably to try and go for some more
> intelligent caching mechanism based on revokable leases so that the
> server can force a flush on a client if necessary -- but I understand
> that's a pretty big nut to crack and if this solves for your use case
> perhaps its the right start.

I tried to enable cached read/writes to keep the original behaviour, but 
it pretty quickly turns back into a cache=loose without metadata 
behaviour and I wanted to avoid this - the less cached the better as far 
as I'm concerned.

I'm also working on a 9P server (nfs-ganesha, 
https://github.com/nfs-ganesha/nfs-ganesha ), so breaking the server 
definitely isn't out of question.
Something based on lock/getlock might be possible but I don't think 
there is anything in the protocol that would make them revokable, 
especially since every message originates from the client...
If anything, I'd rather check before reading or writing if we have dirty 
pages to avoid inconsistencies with other filesystems.

-- 
Dominique


      parent reply	other threads:[~2013-09-03 15:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1378217781-27942-1-git-send-email-dominique.martinet@cea.fr>
2013-09-03 14:37 ` [RFC PATCH] First RFC version of a new cache=mmap model Dominique Martinet
2013-09-07  9:57   ` [V9fs-developer] " Rob Landley
2013-09-07 14:46     ` Dominique Martinet
2013-09-17 11:51       ` [RFC PATCH V2] " Dominique Martinet
2013-10-21 11:06         ` [PATCH] 9P: introduction " Dominique Martinet
     [not found] ` <CAFkjPTnU6r+BD84-TkLGV18vsPvTF7+x3KNhN4ZHor-qx698fg@mail.gmail.com>
2013-09-03 14:44   ` MARTINET Dominique [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=5225F5E8.9020604@cea.fr \
    --to=dominique.martinet@cea.fr \
    --cc=ericvh@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=v9fs-developer@lists.sourceforge.net \
    /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.