Add mutex_destroy() missed in r334844.
MFC after: 1 week Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
3b30feba45
commit
7763842174
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346762
@ -498,8 +498,10 @@ dsl_pool_close(dsl_pool_t *dp)
|
|||||||
rrw_destroy(&dp->dp_config_rwlock);
|
rrw_destroy(&dp->dp_config_rwlock);
|
||||||
mutex_destroy(&dp->dp_lock);
|
mutex_destroy(&dp->dp_lock);
|
||||||
taskq_destroy(dp->dp_vnrele_taskq);
|
taskq_destroy(dp->dp_vnrele_taskq);
|
||||||
if (dp->dp_blkstats != NULL)
|
if (dp->dp_blkstats != NULL) {
|
||||||
|
mutex_destroy(&dp->dp_blkstats->zab_lock);
|
||||||
kmem_free(dp->dp_blkstats, sizeof (zfs_all_blkstats_t));
|
kmem_free(dp->dp_blkstats, sizeof (zfs_all_blkstats_t));
|
||||||
|
}
|
||||||
kmem_free(dp, sizeof (dsl_pool_t));
|
kmem_free(dp, sizeof (dsl_pool_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user