summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ztest
diff options
context:
space:
mode:
authorGeorge Wilson <George.Wilson@Sun.COM>2010-07-01 21:01:30 -0700
committerGeorge Wilson <George.Wilson@Sun.COM>2010-07-01 21:01:30 -0700
commit26cb54a92aed3443f699b590c5c1601ba9a22963 (patch)
treec3cea6267ff0890415623bd2efa5b32a7e5089c4 /usr/src/cmd/ztest
parent7851b394eaf422b4e39062c8bdecfbd8b9c79dd0 (diff)
downloadillumos-joyent-26cb54a92aed3443f699b590c5c1601ba9a22963.tar.gz
6966214 ztest_freeze(): Assertion failed: list->list_head.list_next == node
Diffstat (limited to 'usr/src/cmd/ztest')
-rw-r--r--usr/src/cmd/ztest/ztest.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/usr/src/cmd/ztest/ztest.c b/usr/src/cmd/ztest/ztest.c
index 763b49bb26..2ee44f150d 100644
--- a/usr/src/cmd/ztest/ztest.c
+++ b/usr/src/cmd/ztest/ztest.c
@@ -5246,6 +5246,13 @@ ztest_run(ztest_shared_t *zs)
}
kernel_fini();
+
+ list_destroy(&zcl.zcl_callbacks);
+
+ (void) _mutex_destroy(&zcl.zcl_callbacks_lock);
+
+ (void) rwlock_destroy(&zs->zs_name_lock);
+ (void) _mutex_destroy(&zs->zs_vdev_lock);
}
static void
@@ -5315,13 +5322,6 @@ ztest_freeze(ztest_shared_t *zs)
ztest_dataset_close(zs, 0);
spa_close(spa, FTAG);
kernel_fini();
-
- list_destroy(&zcl.zcl_callbacks);
-
- (void) _mutex_destroy(&zcl.zcl_callbacks_lock);
-
- (void) rwlock_destroy(&zs->zs_name_lock);
- (void) _mutex_destroy(&zs->zs_vdev_lock);
}
void
@@ -5405,6 +5405,9 @@ ztest_init(ztest_shared_t *zs)
ztest_freeze(zs);
ztest_run_zdb(zs->zs_pool);
+
+ (void) rwlock_destroy(&zs->zs_name_lock);
+ (void) _mutex_destroy(&zs->zs_vdev_lock);
}
int