Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2003 10:32:21 -0600
From:      ryan beasley <ryanb@goddamnbastard.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        current@freebsd.org
Subject:   Re: panic: blockable sleep lock (sleep mutex) Giant @ /usr/src/s
Message-ID:  <20030108163221.GA2354@goddamnbastard.org>
In-Reply-To: <XFMail.20030107114133.jhb@FreeBSD.org>
References:  <20030106031821.GA92908@goddamnbastard.org> <XFMail.20030107114133.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Dxnq1zWXvFF0Q93v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 07, 2003 at 11:41:33AM -0500, John Baldwin wrote:
> Your 3rd party registered a lock somehow?  Does it do mtx_init() and not
> do mtx_destroy() when being unloaded?

    Gah!  You hit this one right on the head.  I thought I had equivalent
    mtx_destroy calls for every mtx_init, but there's a section of code that
    bzero()s a structure containing a mutex before initializing that mutex,
    so that caused this common mutex to be initialized twice without
    triggering a panic in witness_init().  The subsequent destroy only
    removed the one instance.

    I've fixed said code and now I can load/unload to my little heart's
    content. :).

    Thanks for replying.
   =20
--=20
ryan beasley				<ryanb@goddamnbastard.org>
GPG ID: 0x16EFBD48

--Dxnq1zWXvFF0Q93v
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE+HFKVskfdOxbvvUgRAvT8AJoCnq30hsQcudgO0cY37bbZeXhThwCfY2Mm
HigAtTBkmDvoa8mVJFAsw64=
=ojjt
-----END PGP SIGNATURE-----

--Dxnq1zWXvFF0Q93v--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030108163221.GA2354>