mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 11:18:52 +03:00
Add missing *_destroy/*_fini calls
The proposed debugging enhancements in zfsonlinux/spl#587 identified the following missing *_destroy/*_fini calls. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Gvozden Neskovic <neskovic@gmail.com> Closes #5428
This commit is contained in:
committed by
Brian Behlendorf
parent
8fa5250f5d
commit
c17486b217
@@ -120,6 +120,7 @@ dsl_deadlist_close(dsl_deadlist_t *dl)
|
||||
dsl_deadlist_entry_t *dle;
|
||||
|
||||
dl->dl_os = NULL;
|
||||
mutex_destroy(&dl->dl_lock);
|
||||
|
||||
if (dl->dl_oldfmt) {
|
||||
dl->dl_oldfmt = B_FALSE;
|
||||
@@ -136,7 +137,6 @@ dsl_deadlist_close(dsl_deadlist_t *dl)
|
||||
avl_destroy(&dl->dl_tree);
|
||||
}
|
||||
dmu_buf_rele(dl->dl_dbuf, dl);
|
||||
mutex_destroy(&dl->dl_lock);
|
||||
dl->dl_dbuf = NULL;
|
||||
dl->dl_phys = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user