diff options
author | Brian Behlendorf <[email protected]> | 2009-01-15 14:05:32 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-01-15 14:05:32 -0800 |
commit | 977fef2ba7e56bd520c029976d14049c26b535a9 (patch) | |
tree | 7113eeb47fb22ff71412114d3e7f54b0b5776997 /module/zfs/dnode.c | |
parent | 12ee6d57c8b662c8a29c48009eed5f053fdf9cc3 (diff) | |
parent | fb5f0bc83330c8a0236c4d34a23723ac1974971a (diff) |
Merge commit 'refs/top-bases/gcc-uninit' into gcc-uninit
Diffstat (limited to 'module/zfs/dnode.c')
-rw-r--r-- | module/zfs/dnode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/zfs/dnode.c b/module/zfs/dnode.c index e77834d60..8686ab983 100644 --- a/module/zfs/dnode.c +++ b/module/zfs/dnode.c @@ -56,6 +56,8 @@ dnode_cons(void *arg, void *unused, int kmflag) rw_init(&dn->dn_struct_rwlock, NULL, RW_DEFAULT, NULL); mutex_init(&dn->dn_mtx, NULL, MUTEX_DEFAULT, NULL); mutex_init(&dn->dn_dbufs_mtx, NULL, MUTEX_DEFAULT, NULL); + cv_init(&dn->dn_notxholds, NULL, CV_DEFAULT, NULL); + refcount_create(&dn->dn_holds); refcount_create(&dn->dn_tx_holds); @@ -84,6 +86,7 @@ dnode_dest(void *arg, void *unused) rw_destroy(&dn->dn_struct_rwlock); mutex_destroy(&dn->dn_mtx); mutex_destroy(&dn->dn_dbufs_mtx); + cv_destroy(&dn->dn_notxholds); refcount_destroy(&dn->dn_holds); refcount_destroy(&dn->dn_tx_holds); |