svn commit: r317275 - head/sys/fs/nfs

Rick Macklem rmacklem at FreeBSD.org
Fri Apr 21 22:38:27 UTC 2017


Author: rmacklem
Date: Fri Apr 21 22:38:26 2017
New Revision: 317275
URL: https://svnweb.freebsd.org/changeset/base/317275

Log:
  Don't create a backchannel for a DS connection.
  
  An NFSv4.1 client connection to a Data Server (DS) should not have a
  backchannel. This patch fixes the NFSv4.1/pNFS client to not do a backchannel
  for this case.
  Found during recent testing with the pNFS server under development.
  
  MFC after:	2 weeks

Modified:
  head/sys/fs/nfs/nfs_commonkrpc.c

Modified: head/sys/fs/nfs/nfs_commonkrpc.c
==============================================================================
--- head/sys/fs/nfs/nfs_commonkrpc.c	Fri Apr 21 22:19:13 2017	(r317274)
+++ head/sys/fs/nfs/nfs_commonkrpc.c	Fri Apr 21 22:38:26 2017	(r317275)
@@ -280,7 +280,8 @@ newnfs_connect(struct nfsmount *nmp, str
 				retries = nmp->nm_retry;
 		} else
 			retries = INT_MAX;
-		if (NFSHASNFSV4N(nmp)) {
+		/* cred == NULL for DS connects. */
+		if (NFSHASNFSV4N(nmp) && cred != NULL) {
 			/*
 			 * Make sure the nfscbd_pool doesn't get destroyed
 			 * while doing this.


More information about the svn-src-head mailing list