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
This commit is contained in:
parent
247cea8f9c
commit
b845c29a03
@ -4613,7 +4613,7 @@ nfsrpc_createsession(struct nfsmount *nmp, struct nfsclsession *sep,
|
||||
*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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user