nfscl: Enable support for the Lookup+Open RPC
Commits3ad1e1c1ce
and57014f21e7
added a Lookup+Open RPC for NFSv4.1/4.2, which can reduce the RPC count by 10-20% for some loads. This has now received a fair amount of testing, so I think it is ok to enable it. Note that the Lookup+Open RPC is only used when the "oneopenown" mount option is specified. As such, this change won't affect most NFSv4.1/4.2 mounts.
This commit is contained in:
parent
4b1174e27a
commit
9792c7d3eb
@ -1323,11 +1323,6 @@ nfs_lookup(struct vop_lookup_args *ap)
|
||||
}
|
||||
|
||||
openmode = 0;
|
||||
#if 0
|
||||
/*
|
||||
* The use of LookupOpen breaks some builds. It is disabled
|
||||
* until that is fixed.
|
||||
*/
|
||||
/*
|
||||
* If this an NFSv4.1/4.2 mount using the "oneopenown" mount
|
||||
* option, it is possible to do the Open operation in the same
|
||||
@ -1347,7 +1342,6 @@ nfs_lookup(struct vop_lookup_args *ap)
|
||||
openmode |= NFSV4OPEN_ACCESSWRITE;
|
||||
}
|
||||
NFSUNLOCKMNT(nmp);
|
||||
#endif
|
||||
|
||||
newvp = NULLVP;
|
||||
NFSINCRGLOBAL(nfsstatsv1.lookupcache_misses);
|
||||
|
Loading…
Reference in New Issue
Block a user