Add missing mutex_init() which was causing assertion panic when on clone

destruction.

Reported by:	kris
This commit is contained in:
Pawel Jakub Dawidek 2007-04-07 11:04:37 +00:00
parent c326cd0e62
commit a583dae953
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168460
2 changed files with 2 additions and 0 deletions

View file

@ -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);

View file

@ -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);