Re: panic: mb_dtor_pack: ref_cnt != 1

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Sat, 5 Nov 2005 11:49:24 +0300
On Sat, Nov 05, 2005 at 11:01:16AM +0300, Gleb Smirnoff wrote:
T> On Sat, Nov 05, 2005 at 05:41:05AM +0200, Giorgos Keramidas wrote:
T> G> On 2005-11-05 03:34, Gleb Smirnoff <glebius_at_freebsd.org> wrote:
T> G> >   Andre, Thierry, Sam,
T> G> >
T> G> >   this patch should fix the problems
T> G> 
T> G> But it panics in mb_dtor_pack() because ext_type != EXT_CLUSTER
T> G> when my ath0 interface tries to associate with an AP.
T> G> 
T> G> I had to change this too, to make things work:
T> 
T> Updated patch.

One more update. Since I have removed this block:

                       if (*(m->m_ext.ref_cnt) == 0)
                               *(m->m_ext.ref_cnt) = 1;

I have also altered KASSERT in mb_dtor_pack(). I don't like
inventing an incorrect invariant check and then adding helpers
to avoid it being triggered.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE

Received on Sat Nov 05 2005 - 07:49:27 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:47 UTC