summaryrefslogtreecommitdiffstats
path: root/module/zfs/dnode.c
diff options
context:
space:
mode:
authorJorgen Lundman <[email protected]>2015-04-02 00:49:14 +1100
committerBrian Behlendorf <[email protected]>2015-04-28 16:23:38 -0700
commit58c4aa00c65e09f254de0b939b2c1aa720c204a1 (patch)
treeadd79d708eb8b3dd10f062d8c9231fd2d249d21e /module/zfs/dnode.c
parentca227e54a89e0797ca99063a326f01633267a44a (diff)
Illumos 4975 - missing mutex_destroy() calls in zfs
4975 missing mutex_destroy() calls in zfs Author: Jorgen Lundman <[email protected]> Reviewed by: Matthew Ahrens <[email protected]> Reviewed by: George Wilson <[email protected]> Reviewed by: Rich Lowe <[email protected]> Reviewed by: Seth Nimbosa <[email protected]> Reviewed by: Dan McDonald <[email protected]> Reviewed by: Don Brady <[email protected]> Approved by: Dan McDonald <[email protected]> References: https://www.illumos.org/issues/4975 https://github.com/illumos/illumos-gate/commit/d2b3cbb Ported-by: Chris Dunlop <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/dnode.c')
-rw-r--r--module/zfs/dnode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/module/zfs/dnode.c b/module/zfs/dnode.c
index ef74621a0..815696f70 100644
--- a/module/zfs/dnode.c
+++ b/module/zfs/dnode.c
@@ -1079,6 +1079,11 @@ dnode_hold_impl(objset_t *os, uint64_t object, int flag,
}
if ((winner = dmu_buf_set_user(&db->db, children_dnodes, NULL,
dnode_buf_pageout))) {
+
+ for (i = 0; i < epb; i++) {
+ zrl_destroy(&dnh[i].dnh_zrlock);
+ }
+
kmem_free(children_dnodes, sizeof (dnode_children_t) +
(epb - 1) * sizeof (dnode_handle_t));
children_dnodes = winner;