svn commit: r324194 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Andriy Gapon avg at FreeBSD.org
Mon Oct 2 11:07:49 UTC 2017


Author: avg
Date: Mon Oct  2 11:07:48 2017
New Revision: 324194
URL: https://svnweb.freebsd.org/changeset/base/324194

Log:
  fix incorrect use of getzfsvfs_impl in r324163, ZFS Channel Programs
  
  getzfsvfs_impl() returns a referenced, not busied, filesystem,
  so the matching call is vfs_rel, not vfs_unbusy.
  
  MFC after:	4 weeks
  X-MFC with:	r324163

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zcp_get.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zcp_get.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zcp_get.c	Mon Oct  2 09:45:17 2017	(r324193)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zcp_get.c	Mon Oct  2 11:07:48 2017	(r324194)
@@ -288,7 +288,7 @@ get_temporary_prop(dsl_dataset_t *ds, zfs_prop_t zfs_p
 #ifdef illumos
 		VFS_RELE(vfsp);
 #else
-		vfs_unbusy(vfsp);
+		vfs_rel(vfsp);
 #endif
 		return (ENOENT);
 	}
@@ -296,7 +296,7 @@ get_temporary_prop(dsl_dataset_t *ds, zfs_prop_t zfs_p
 #ifdef illumos
 	VFS_RELE(vfsp);
 #else
-	vfs_unbusy(vfsp);
+	vfs_rel(vfsp);
 #endif
 	if (tmp != *val) {
 		(void) strcpy(setpoint, "temporary");


More information about the svn-src-head mailing list