MFV r353628:
10842 Mutex leak in dsl_dataset_hold_obj()
illumos/illumos-gate@ad027c0ff9
ad027c0ff9
https://www.illumos.org/issues/10842
ZoL d10b2f1d35b Mutex leak in dsl_dataset_hold_obj()
Portions contributed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Author: Jorgen Lundman <lundman@lundman.net>
Obtained from: illumos, ZoL
MFC after: 15 days
This commit is contained in:
parent
fdf92df956
commit
5f53fd39c6
@ -573,10 +573,14 @@ dsl_dataset_hold_obj(dsl_pool_t *dp, uint64_t dsobj, void *tag,
|
||||
if (ds->ds_prev)
|
||||
dsl_dataset_rele(ds->ds_prev, ds);
|
||||
dsl_dir_rele(ds->ds_dir, ds);
|
||||
list_destroy(&ds->ds_prop_cbs);
|
||||
list_destroy(&ds->ds_sendstreams);
|
||||
mutex_destroy(&ds->ds_lock);
|
||||
mutex_destroy(&ds->ds_opening_lock);
|
||||
mutex_destroy(&ds->ds_sendstream_lock);
|
||||
mutex_destroy(&ds->ds_remap_deadlist_lock);
|
||||
zfs_refcount_destroy(&ds->ds_longholds);
|
||||
rrw_destroy(&ds->ds_bp_rwlock);
|
||||
kmem_free(ds, sizeof (dsl_dataset_t));
|
||||
if (err != 0) {
|
||||
dmu_buf_rele(dbuf, tag);
|
||||
|
Loading…
Reference in New Issue
Block a user