svn commit: r210741 - stable/8/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Mon Aug 2 00:37:34 UTC 2010
Author: rmacklem
Date: Mon Aug 2 00:37:33 2010
New Revision: 210741
URL: http://svn.freebsd.org/changeset/base/210741
Log:
MFC: r210227
Add a call to nfscl_mustflush() in nfs_close() of the experimental
NFSv4 client, so that attributes are not acquired from the server
when a delegation for the file is held. This can reduce the number
of Getattr Ops significantly.
Modified:
stable/8/sys/fs/nfsclient/nfs_clvnops.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_clvnops.c
==============================================================================
--- stable/8/sys/fs/nfsclient/nfs_clvnops.c Sun Aug 1 23:58:26 2010 (r210740)
+++ stable/8/sys/fs/nfsclient/nfs_clvnops.c Mon Aug 2 00:37:33 2010 (r210741)
@@ -726,7 +726,7 @@ nfs_close(struct vop_close_args *ap)
/*
* Get attributes so "change" is up to date.
*/
- if (!error) {
+ if (error == 0 && nfscl_mustflush(vp)) {
ret = nfsrpc_getattr(vp, cred, ap->a_td, &nfsva,
NULL);
if (!ret) {
More information about the svn-src-stable
mailing list