From: David Mansfield <lkml@dm.cobite.com>
To: trond.myklebust@fys.uio.no
Cc: linux-kernel@vger.kernel.org
Subject: NFS file handle cached incorrectly
Date: Mon, 12 Apr 2004 16:38:07 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.58.0404121407530.23214@dhcp07.cobite.com> (raw)
Hi Trond,
I have a problem with the fedora core 1 kernels, which as I understand,
have a patch which you originally created which creates a function called
nfs_cached_lookup, as well as adding handling for READDIRPLUS.
I'm guessing that this is the cause, after looking at diffs between
systems that work and those that don't.
It would appear this patch hasn't made it to the mainline 2.4 kernels, and
I haven't tested the 2.6 for this problem, so I understand if this is
something you cannot help me with.
(I have filed a bugzilla with redhat, but it is languishing in NEW state
for a while now bug#118922).
For this test, client is FC1, NFS server is RHEL3, 'othermachine' is any
other NFS client that also mounts the same network home directory.
Current working directory is home directory (NFS mounted). You'll need an
ssh-agent assisted session to get the timing right.
To reproduce (all as one command to get the timing right):
rm foo; date >foo; sleep 1; cat foo; \
ssh -x othermachine 'touch foo.new; rm foo; mv foo.new foo'; cat foo; date
Basically, what happens is that the inode (on server) of the file 'foo'
changes 'out from under' the client (by another client, 'othermachine',
that has mounted same directory). Client then uses the cached file handle
and gets a 'stale nfs handle' error visible to user space for the last
'cat foo'.
If more than one second passes between the rename on 'othermachine' and
the 'cat foo' on the client, the problem doesn't appear.
In reality, this is adversely affecting 'ssh' with X11 forwarding (funny
things happening with the xauth program on either end of the ssh).
Could we retry the LOOKUP if the fh comes from the cache and we get a
stale file handle error automatically?
Any other ideas?
David
--
/==============================\
| David Mansfield |
| lkml@dm.cobite.com |
\==============================/
next reply other threads:[~2004-04-12 20:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-12 20:38 David Mansfield [this message]
2004-04-12 21:01 ` Trond Myklebust
2004-04-12 21:07 ` Trond Myklebust
2004-04-13 14:25 ` David Mansfield
2004-04-13 16:57 ` Trond Myklebust
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=Pine.LNX.4.58.0404121407530.23214@dhcp07.cobite.com \
--to=lkml@dm.cobite.com \
--cc=linux-kernel@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
/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
all inboxes | Powered by JetHome®