svn commit: r317344 - head/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Sun Apr 23 21:36:33 UTC 2017
Author: rmacklem
Date: Sun Apr 23 21:36:32 2017
New Revision: 317344
URL: https://svnweb.freebsd.org/changeset/base/317344
Log:
Don't set the connection-back-channel flag for DS sessions.
The NFSv4.1/pNFS client does not use/need a backchannel for the Data Server (DS)
sessions, so the flag should only be set for MetaData Server (MDS) sessions.
This patch should have been a part of r317275.
MFC after: 2 weeks
Modified:
head/sys/fs/nfsclient/nfs_clrpcops.c
Modified: head/sys/fs/nfsclient/nfs_clrpcops.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clrpcops.c Sun Apr 23 21:17:59 2017 (r317343)
+++ head/sys/fs/nfsclient/nfs_clrpcops.c Sun Apr 23 21:36:32 2017 (r317344)
@@ -4613,7 +4613,7 @@ nfsrpc_createsession(struct nfsmount *nm
*tl++ = sep->nfsess_clientid.lval[1];
*tl++ = txdr_unsigned(sequenceid);
crflags = (NFSMNT_RDONLY(nmp->nm_mountp) ? 0 : NFSV4CRSESS_PERSIST);
- if (nfscl_enablecallb != 0 && nfs_numnfscbd > 0)
+ if (nfscl_enablecallb != 0 && nfs_numnfscbd > 0 && mds != 0)
crflags |= NFSV4CRSESS_CONNBACKCHAN;
*tl = txdr_unsigned(crflags);
More information about the svn-src-all
mailing list