svn commit: r330071 - stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Andriy Gapon avg at FreeBSD.org
Tue Feb 27 14:51:22 UTC 2018


Author: avg
Date: Tue Feb 27 14:51:21 2018
New Revision: 330071
URL: https://svnweb.freebsd.org/changeset/base/330071

Log:
  MFC r329556,r329820 remove an assert in zfsctl_snapdir_lookup to match r323578

Modified:
  stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c	Tue Feb 27 14:50:19 2018	(r330070)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ctldir.c	Tue Feb 27 14:51:21 2018	(r330071)
@@ -886,13 +886,6 @@ zfsctl_snapdir_lookup(ap)
 			break;
 
 		/*
-		 * The vnode must be referenced at least by this thread and
-		 * the mount point or the thread doing the mounting.
-		 * There can be more references from concurrent lookups.
-		 */
-		KASSERT(vrefcnt(*vpp) > 1, ("found unreferenced mountpoint"));
-
-		/*
 		 * Check if a snapshot is already mounted on top of the vnode.
 		 */
 		err = zfsctl_mounted_here(vpp, lkflags);


More information about the svn-src-all mailing list