Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2018 00:48:45 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335573 - head/sys/fs/nfs
Message-ID:  <201806230048.w5N0mjRu012448@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806230048.w5N0mjRu012448>