From owner-svn-src-stable@FreeBSD.ORG Thu Feb 26 19:08:25 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3709E10656C2; Thu, 26 Feb 2009 19:08:25 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 241618FC23; Thu, 26 Feb 2009 19:08:25 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1QJ8PTU035830; Thu, 26 Feb 2009 19:08:25 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1QJ8PBs035829; Thu, 26 Feb 2009 19:08:25 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <200902261908.n1QJ8PBs035829@svn.freebsd.org> From: John Baldwin Date: Thu, 26 Feb 2009 19:08:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org X-SVN-Group: stable-6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189083 - in stable/6/sys: . contrib/pf dev/cxgb nfsclient X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 19:08:26 -0000 Author: jhb Date: Thu Feb 26 19:08:24 2009 New Revision: 189083 URL: http://svn.freebsd.org/changeset/base/189083 Log: MFC: Don't clear the attribute cache of a file when it is closed. Modified: stable/6/sys/ (props changed) stable/6/sys/contrib/pf/ (props changed) stable/6/sys/dev/cxgb/ (props changed) stable/6/sys/nfsclient/nfs_vnops.c Modified: stable/6/sys/nfsclient/nfs_vnops.c ============================================================================== --- stable/6/sys/nfsclient/nfs_vnops.c Thu Feb 26 18:58:41 2009 (r189082) +++ stable/6/sys/nfsclient/nfs_vnops.c Thu Feb 26 19:08:24 2009 (r189083) @@ -542,13 +542,6 @@ nfs_close(struct vop_close_args *ap) } else error = nfs_vinvalbuf(vp, V_SAVE, ap->a_td, 1); } - /* - * Invalidate the attribute cache in all cases. - * An open is going to fetch fresh attrs any way, other procs - * on this node that have file open will be forced to do an - * otw attr fetch, but this is safe. - */ - np->n_attrstamp = 0; if (np->n_flag & NWRITEERR) { np->n_flag &= ~NWRITEERR; error = np->n_error;