All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Matt W. Benjamin" <matt@linuxbox.com>
To: Boaz Harrosh <bharrosh@panasas.com>
Cc: linux-nfs <linux-nfs@vger.kernel.org>,
	Ganesha NFS List <nfs-ganesha-devel@lists.sourceforge.net>,
	Trond Myklebust <Trond.Myklebust@netapp.com>
Subject: Re: unlink within an open directory stream
Date: Mon, 26 Mar 2012 14:55:00 -0400 (EDT)	[thread overview]
Message-ID: <1974178651.72.1332788099966.JavaMail.root@thunderbeast.private.linuxbox.com> (raw)
In-Reply-To: <4F70B8DF.9000108@panasas.com>

Hi,

Boaz:  we do not any longer send a readdir index.  We do send a cookieverf.

Fist of all, I haven't established that the issue we're actually observing is caused
by the Linux client sending old cookies to readdir(something).  However, if it is,
it's in no way better to try to make cookies "more persistent."  Nor should the Linux
client be expecting it.  The assumption is simply flawed.  The protocol introduced
cookie verifier (a LONG time ago) for a reason.

Matt
----- "Boaz Harrosh" <bharrosh@panasas.com> wrote:

> On 03/26/2012 11:25 AM, Myklebust, Trond wrote:
> 
> > On Mon, 2012-03-26 at 11:17 -0700, Boaz Harrosh wrote:
> >> On 03/24/2012 10:12 AM, Myklebust, Trond wrote:
> >>
> >>
> >> It's the new (post RHEL 6.0 Kernel) NFS need for opendir after an
> unlink.
> > 
> > What?
> > 
> 
> 
> The links below report on regression in RHEL 6.2 which have a new NFS
> implementation where  6.0 used to be fine.
> (Or it's what I understood from the reporters)
> 
> <snip>
> 
> > 
> 
> > No.
> > 
> > If the server supports permanent readdir cookies, then there is no
> need
> > for opendir after unlink.
> > 
> > If the server does not have permanent readdir cookies, then our
> client
> > has never supported it anyway (nor will it ever do so). That whole
> > 'cookieverf' READDIR bullshit has never provided a workable model
> for a
> > POSIX client...
> 
> 
> Thanks Trond for the explanation. Forgive my slowness. So you are
> saying that with knfsd it's actually filesystem dependent and maybe
> the reporters did not compare apples-to-apples and the difference is
> in the behind file system.
> 
> Matt I'm sure Trond is right with regard to Ganesha, because we
> send a readdir index and a cookieverf, which will change after
> unlink. Since the application does not call opendir again the
> client will send the old cookies, which is now a different file
> or might get out-of-bounds for Ganesha.
> 
> Let me think about it a bit. I'm sure we can send a Better
> 64bit cookie, which will be more persistent, even across unlinks.
> 
> > 
> > 
> 
> 
> Thanks
> Boaz

-- 
Matt Benjamin
The Linux Box
206 South Fifth Ave. Suite 150
Ann Arbor, MI  48104

http://linuxbox.com

tel. 734-761-4689
fax. 734-769-8938
cel. 734-216-5309

  reply	other threads:[~2012-03-26 18:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <209745840.4.1332606289405.JavaMail.root@thunderbeast.private.linuxbox.com>
2012-03-24 16:34 ` unlink within an open directory stream Matt W. Benjamin
2012-03-24 16:44   ` Myklebust, Trond
2012-03-24 16:53     ` Matt W. Benjamin
2012-03-24 17:12       ` Myklebust, Trond
2012-03-24 17:43         ` Matt W. Benjamin
2012-03-26 18:17         ` Boaz Harrosh
2012-03-26 18:25           ` Myklebust, Trond
2012-03-26 18:43             ` Boaz Harrosh
2012-03-26 18:55               ` Matt W. Benjamin [this message]
2012-03-26 19:01                 ` Myklebust, Trond
2012-03-26 19:07                 ` Boaz Harrosh
2012-03-30 15:24                 ` Peter Staubach
2012-03-30 15:46                   ` Myklebust, Trond
2012-03-30 16:46                     ` Peter Staubach
2012-03-30 17:10                     ` Matt W. Benjamin
2012-03-30 20:17           ` Jeff Layton
2012-04-04 15:35           ` Jeff Layton
2012-04-05  8:45             ` Benny Halevy
     [not found] <1598378492.82.1332790088063.JavaMail.root@thunderbeast.private.linuxbox.com>
2012-03-26 19:29 ` Matt W. Benjamin

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=1974178651.72.1332788099966.JavaMail.root@thunderbeast.private.linuxbox.com \
    --to=matt@linuxbox.com \
    --cc=Trond.Myklebust@netapp.com \
    --cc=bharrosh@panasas.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=nfs-ganesha-devel@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.