NFS and negative dcache entries...

Steve Mcclure (smcclure@emc.com)
Mon, 23 Aug 1999 21:37:35 -0400


Hello. I've found my problem, or at least a solution to it. It's
negative dcache entry cacheing. I have a simple fix that I'd like to
see implemented. Note that this is against the 2.2.10 kernel, but I
believe it exists in the 2.2.11 and others from some of the traffic
I'm seeing.

Basically, when I mount with the "noac" option, I expect all attribute
caching to be disabled, including negative dcache entries. So, this
simple fix below does that, and solves my problems I'm having in this
area (strange NFS "things". :) )

-- Steve McClure
smcclure@emc.com

----

--- dir.c.orig Sun Aug 22 12:07:21 1999
+++ dir.c Mon Aug 23 21:06:49 1999
@@ -402,6 +402,8 @@ static inline int nfs_neg_need_reval(str

if (diff < 5*60)
timeout = 1 * HZ;
+ if (timeout > NFS_ATTRTIMEO(dentry->d_parent->d_inode))
+ timeout = NFS_ATTRTIMEO(dentry->d_parent->d_inode);

return time_after(jiffies, dentry->d_time + timeout);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/