svn commit: r286560 - stable/9/sys/fs/nfsserver

Rick Macklem rmacklem at FreeBSD.org
Sun Aug 9 22:33:52 UTC 2015


Author: rmacklem
Date: Sun Aug  9 22:33:51 2015
New Revision: 286560
URL: https://svnweb.freebsd.org/changeset/base/286560

Log:
  MFC: r286046
  This patch fixes a problem where, if the NFSv4 server has a previous
  unconfirmed clientid structure for the same client on the last hash list,
  this old entry would not be removed/deleted. I do not think this bug would have
  caused serious problems, since the new entry would have been before the old one
  on the list. This old entry would have eventually been scavenged/removed.

Modified:
  stable/9/sys/fs/nfsserver/nfs_nfsdstate.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/fs/   (props changed)

Modified: stable/9/sys/fs/nfsserver/nfs_nfsdstate.c
==============================================================================
--- stable/9/sys/fs/nfsserver/nfs_nfsdstate.c	Sun Aug  9 22:29:10 2015	(r286559)
+++ stable/9/sys/fs/nfsserver/nfs_nfsdstate.c	Sun Aug  9 22:33:51 2015	(r286560)
@@ -187,7 +187,8 @@ nfsrv_setclient(struct nfsrv_descript *n
 			break;
 		}
 	    }
-	    i++;
+	    if (gotit == 0)
+		i++;
 	}
 	if (!gotit ||
 	    (clp->lc_flags & (LCL_NEEDSCONFIRM | LCL_ADMINREVOKED))) {


More information about the svn-src-stable-9 mailing list