git: 9792c7d3eb41 - main - nfscl: Enable support for the Lookup+Open RPC

From: Rick Macklem <rmacklem_at_FreeBSD.org>
Date: Tue, 31 May 2022 19:00:42 UTC
The branch main has been updated by rmacklem:

URL: https://cgit.FreeBSD.org/src/commit/?id=9792c7d3eb41dc1e3709e00a98734c3312d1b4fe

commit 9792c7d3eb41dc1e3709e00a98734c3312d1b4fe
Author:     Rick Macklem <rmacklem@FreeBSD.org>
AuthorDate: 2022-05-31 18:59:39 +0000
Commit:     Rick Macklem <rmacklem@FreeBSD.org>
CommitDate: 2022-05-31 18:59:39 +0000

    nfscl: Enable support for the Lookup+Open RPC
    
    Commits 3ad1e1c1ce20 and 57014f21e754 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.
---
 sys/fs/nfsclient/nfs_clvnops.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sys/fs/nfsclient/nfs_clvnops.c b/sys/fs/nfsclient/nfs_clvnops.c
index 3bc65f5136f4..af48b5036969 100644
--- a/sys/fs/nfsclient/nfs_clvnops.c
+++ b/sys/fs/nfsclient/nfs_clvnops.c
@@ -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);