changeset 12687:06a71df33c1c

6963494 zfs_onexit_add_cb() should be called in non-DEBUG kernels too
author Chris Kirby <Chris.Kirby@oracle.com>
date Thu, 24 Jun 2010 14:37:26 -0600
parents a097917597fd
children f2264e49907f
files usr/src/uts/common/fs/zfs/dsl_dataset.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/fs/zfs/dsl_dataset.c	Thu Jun 24 13:24:20 2010 -0700
+++ b/usr/src/uts/common/fs/zfs/dsl_dataset.c	Thu Jun 24 14:37:26 2010 -0600
@@ -3601,8 +3601,8 @@
 		(void) strlcpy(ca->snapname, snapname, sizeof (ca->snapname));
 		(void) strlcpy(ca->htag, htag, sizeof (ca->htag));
 		ca->recursive = recursive;
-		ASSERT3U(0, ==, zfs_onexit_add_cb(cleanup_fd,
-		    dsl_dataset_user_release_onexit, ca, &action_handle));
+		(void) zfs_onexit_add_cb(cleanup_fd,
+		    dsl_dataset_user_release_onexit, ca, &action_handle);
 	}
 
 	kmem_free(ha, sizeof (struct dsl_ds_holdarg));