svn commit: r210032 - head/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Tue Jul 13 23:07:32 UTC 2010
Author: rmacklem
Date: Tue Jul 13 23:07:32 2010
New Revision: 210032
URL: http://svn.freebsd.org/changeset/base/210032
Log:
For the experimental NFSv4 client, do not use cached attributes
that were invalidated, even when a delegation for the file is held.
MFC after: 2 weeks
Modified:
head/sys/fs/nfsclient/nfs_clsubs.c
Modified: head/sys/fs/nfsclient/nfs_clsubs.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clsubs.c Tue Jul 13 22:55:12 2010 (r210031)
+++ head/sys/fs/nfsclient/nfs_clsubs.c Tue Jul 13 23:07:32 2010 (r210032)
@@ -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-all
mailing list