nfs_nfsdkrpc.c: Fix the "glue" for the nfsrdma.ko modules for NFSv3

Without this patch, nd_xprt is only set for NFSv4.1/4.2.
The nfsrdma.ko needs it to be set for all versions of NFS,
so this one line patch does that.

No semantics change for non-RDMA NFS service.

MFC after:	3 months
Fixes:	7144a1d58c ("nfsd: Add glue for the nfsrdma.ko module")
This commit is contained in:
Rick Macklem committed 2026-09-14 16:55:32 -07:00
1 parent fa848d4d0c
commit 274b0d6b11
1 file changed
+1 -2
+1 -2
View File
@@ -506,8 +506,7 @@ nfs_proc(struct nfsrv_descript *nd, u_int32_t xid, SVCXPRT *xprt,
* RC_DROPIT - just throw the request away
*/
if (cacherep == RC_DOIT) {
if ((nd->nd_flag & ND_NFSV41) != 0)
nd->nd_xprt = xprt;
nd->nd_xprt = xprt;
nfsrvd_dorpc(nd, isdgram, tagstr, taglen, minorvers);
if ((nd->nd_flag & ND_NFSV41) != 0) {
if (nd->nd_repstat != NFSERR_REPLYFROMCACHE &&