X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=module%2Fzfs%2Fdbuf.c;fp=module%2Fzfs%2Fdbuf.c;h=55326c49815e2072acfa3cee1762442ecfd956fc;hb=753972fccf7d3d5c9406edbd5281950681e0f606;hp=7b66fcea429913f7110cfb78d9dbc604447e5db6;hpb=5631c038895ea97fde261831887226ee56d06dd5;p=zfs.git diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c index 7b66fce..55326c4 100644 --- a/module/zfs/dbuf.c +++ b/module/zfs/dbuf.c @@ -2319,6 +2319,10 @@ dbuf_sync_leaf(dbuf_dirty_record_t *dr, dmu_tx_t *tx) ASSERT(dr->dr_next == NULL); ASSERT(dr->dr_dbuf == db); *drp = dr->dr_next; + if (dr->dr_dbuf->db_level != 0) { + mutex_destroy(&dr->dt.di.dr_mtx); + list_destroy(&dr->dt.di.dr_children); + } kmem_free(dr, sizeof (dbuf_dirty_record_t)); ASSERT(db->db_dirtycnt > 0); db->db_dirtycnt -= 1;