mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-08 01:20:40 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168460
|
@ -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…
Reference in a new issue