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.

MFC after:	2 weeks
This commit is contained in:
Rick Macklem 2010-07-18 22:35:46 +00:00
parent 1a996ed1d8
commit 6ec1ef63d1

View File

@ -709,7 +709,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) {