svn commit: r335573 - head/sys/fs/nfs
Rick Macklem
rmacklem at FreeBSD.org
Sat Jun 23 00:48:46 UTC 2018
Author: rmacklem
Date: Sat Jun 23 00:48:45 2018
New Revision: 335573
URL: https://svnweb.freebsd.org/changeset/base/335573
Log:
Set the slotid and ND_HASSLOTID flag for NFSv4.1 sequenced operations.
Most NFSv4.1 compound RPCs start with a Sequence operation. For these
cases, save the slotid and note that it is saved by setting ND_HASSLOTID.
This is used by r335568 to free up the session slot and disable it.
MFC after: 2 weeks
Modified:
head/sys/fs/nfs/nfs_commonsubs.c
Modified: head/sys/fs/nfs/nfs_commonsubs.c
==============================================================================
--- head/sys/fs/nfs/nfs_commonsubs.c Sat Jun 23 00:38:44 2018 (r335572)
+++ head/sys/fs/nfs/nfs_commonsubs.c Sat Jun 23 00:48:45 2018 (r335573)
@@ -4587,6 +4587,8 @@ nfsv4_setsequence(struct nfsmount *nmp, struct nfsrv_d
tl += NFSX_V4SESSIONID / NFSX_UNSIGNED;
nd->nd_slotseq = tl;
if (error == 0) {
+ nd->nd_flag |= ND_HASSLOTID;
+ nd->nd_slotid = slotpos;
*tl++ = txdr_unsigned(slotseq);
*tl++ = txdr_unsigned(slotpos);
*tl++ = txdr_unsigned(maxslot);
More information about the svn-src-head
mailing list