From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: NFS regression in 2.6
Date: 19 Aug 2003 22:37:50 -0700 [thread overview]
Message-ID: <shszni499e9.fsf@charged.uio.no> (raw)
In-Reply-To: <3F4268C1.9040608@redhat.com>
>>>>> " " == Ulrich Drepper <drepper@redhat.com> writes:
> The result is always, 100% of the time, a failure in ftruncate.
> The kernel reports ESTALE. This has not been a problem in 2.4
> and not even in 2.6 until <mumble> months ago. And of course
> it works with local disks.
There are known bugs in the way we handle readdirplus. That's why it
only hits NFSv3. Does the following patch fix it?
Cheers,
Trond
diff -u --recursive --new-file linux-2.6.0-test2/fs/nfs/dir.c linux-2.6.0-test2-fix_cto/fs/nfs/dir.c
--- linux-2.6.0-test2/fs/nfs/dir.c 2003-06-30 07:19:26.000000000 -0700
+++ linux-2.6.0-test2-fix_cto/fs/nfs/dir.c 2003-08-11 07:54:47.000000000 -0700
@@ -557,7 +557,7 @@
/* Force a full look up iff the parent directory has changed */
if (nfs_check_verifier(dir, dentry)) {
if (nfs_lookup_verify_inode(inode, isopen))
- goto out_bad;
+ goto out_zap_parent;
goto out_valid;
}
@@ -566,7 +566,7 @@
if (memcmp(NFS_FH(inode), &fhandle, sizeof(struct nfs_fh))!= 0)
goto out_bad;
if (nfs_lookup_verify_inode(inode, isopen))
- goto out_bad;
+ goto out_zap_parent;
goto out_valid_renew;
}
@@ -587,6 +587,8 @@
unlock_kernel();
dput(parent);
return 1;
+out_zap_parent:
+ nfs_zap_caches(dir);
out_bad:
NFS_CACHEINV(dir);
if (inode && S_ISDIR(inode->i_mode)) {
next prev parent reply other threads:[~2003-08-20 14:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-19 18:13 NFS regression in 2.6 Ulrich Drepper
2003-08-19 18:49 ` Ulrich Drepper
2003-08-19 19:19 ` Tupshin Harper
2003-08-19 19:06 ` Andries Brouwer
2003-08-19 19:15 ` Ulrich Drepper
2003-08-20 2:26 ` Andries Brouwer
2003-08-20 5:37 ` Trond Myklebust [this message]
2003-08-20 17:24 ` Andries Brouwer
2003-08-20 18:43 ` Trond Myklebust
2003-08-20 19:02 ` Ulrich Drepper
2003-08-20 19:52 ` Andries Brouwer
2003-08-20 20:02 ` Trond Myklebust
2003-08-21 0:28 ` NFS regression in 2.6 -- gnome problem Tupshin Harper
2003-08-21 0:38 ` Andries Brouwer
2003-08-21 1:07 ` Tupshin Harper
2003-08-21 3:05 ` NFS regression in 2.6 Ulrich Drepper
2003-08-20 17:43 ` Ulrich Drepper
2003-08-20 18:06 ` Andries Brouwer
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=shszni499e9.fsf@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/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