diff options
author | pjd <pjd@FreeBSD.org> | 2007-05-06 19:05:37 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-05-06 19:05:37 +0000 |
commit | e719d9746950e5d50fca7db8e178d20037263262 (patch) | |
tree | 95cba692d0bf26f725dbc7a37642171ee00406de /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode_sync.c | |
parent | c1f9a3e303048a7b8d456ac3131ecb19ae26e7d8 (diff) | |
download | FreeBSD-src-e719d9746950e5d50fca7db8e178d20037263262.zip FreeBSD-src-e719d9746950e5d50fca7db8e178d20037263262.tar.gz |
- Add missing lock destruction and remove duplicate initializations.
With this change it is possible to unload zfs.ko module from
WITNESS-enabled kernel.
- Remove bogus comment.
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode_sync.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode_sync.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode_sync.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode_sync.c index 08f60e8..9e8c7ad 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode_sync.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode_sync.c @@ -445,6 +445,8 @@ dnode_undirty_dbufs(list_t *list) } else { mutex_exit(&db->db_mtx); dnode_undirty_dbufs(&dr->dt.di.dr_children); + list_destroy(&dr->dt.di.dr_children); + mutex_destroy(&dr->dt.di.dr_mtx); } kmem_free(dr, sizeof (dbuf_dirty_record_t)); dbuf_rele(db, (void *)(uintptr_t)txg); |