Add missing mutex_init() which was causing assertion panic when on clone
destruction. Reported by: kris
This commit is contained in:
parent
c326cd0e62
commit
a583dae953
@ -2402,6 +2402,7 @@ arc_release(arc_buf_t *buf, void *tag)
|
||||
nhdr->b_flags = 0;
|
||||
nhdr->b_datacnt = 1;
|
||||
nhdr->b_freeze_cksum = NULL;
|
||||
mutex_init(&nhdr->b_freeze_lock, NULL, MUTEX_DEFAULT, NULL);
|
||||
(void) refcount_add(&nhdr->b_refcnt, tag);
|
||||
buf->b_hdr = nhdr;
|
||||
atomic_add_64(&arc_anon->arcs_size, blksz);
|
||||
|
@ -2402,6 +2402,7 @@ arc_release(arc_buf_t *buf, void *tag)
|
||||
nhdr->b_flags = 0;
|
||||
nhdr->b_datacnt = 1;
|
||||
nhdr->b_freeze_cksum = NULL;
|
||||
mutex_init(&nhdr->b_freeze_lock, NULL, MUTEX_DEFAULT, NULL);
|
||||
(void) refcount_add(&nhdr->b_refcnt, tag);
|
||||
buf->b_hdr = nhdr;
|
||||
atomic_add_64(&arc_anon->arcs_size, blksz);
|
||||
|
Loading…
x
Reference in New Issue
Block a user