From 58c4aa00c65e09f254de0b939b2c1aa720c204a1 Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Thu, 2 Apr 2015 00:49:14 +1100 Subject: Illumos 4975 - missing mutex_destroy() calls in zfs 4975 missing mutex_destroy() calls in zfs Author: Jorgen Lundman Reviewed by: Matthew Ahrens Reviewed by: George Wilson Reviewed by: Rich Lowe Reviewed by: Seth Nimbosa Reviewed by: Dan McDonald Reviewed by: Don Brady Approved by: Dan McDonald References: https://www.illumos.org/issues/4975 https://github.com/illumos/illumos-gate/commit/d2b3cbb Ported-by: Chris Dunlop Signed-off-by: Brian Behlendorf --- module/zfs/dnode.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'module/zfs/dnode.c') 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; -- cgit v1.2.3