svn commit: r210706 - stable/8/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Sun Aug 1 01:06:18 UTC 2010
Author: rmacklem
Date: Sun Aug 1 01:06:17 2010
New Revision: 210706
URL: http://svn.freebsd.org/changeset/base/210706
Log:
MFC: r210032
For the experimental NFSv4 client, do not use cached attributes
that were invalidated even when a delegation for the file is held.
Modified:
stable/8/sys/fs/nfsclient/nfs_clsubs.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/fs/nfsclient/nfs_clsubs.c
==============================================================================
--- stable/8/sys/fs/nfsclient/nfs_clsubs.c Sat Jul 31 23:15:51 2010 (r210705)
+++ stable/8/sys/fs/nfsclient/nfs_clsubs.c Sun Aug 1 01:06:17 2010 (r210706)
@@ -230,7 +230,7 @@ ncl_getattrcache(struct vnode *vp, struc
#endif
if ((time_second - np->n_attrstamp) >= timeo &&
- mustflush != 0) {
+ (mustflush != 0 || np->n_attrstamp == 0)) {
newnfsstats.attrcache_misses++;
mtx_unlock(&np->n_mtx);
#ifdef NFS_ACDEBUG
More information about the svn-src-stable-8
mailing list