Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2010 23:07:32 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210032 - head/sys/fs/nfsclient
Message-ID:  <201007132307.o6DN7W8v082786@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007132307.o6DN7W8v082786>