From owner-freebsd-current Wed Jan 8 8:32:30 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 914C937B401; Wed, 8 Jan 2003 08:32:28 -0800 (PST) Received: from mx01.goddamnbastard.org (12-249-234-146.client.attbi.com [12.249.234.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15EFA43ED1; Wed, 8 Jan 2003 08:32:23 -0800 (PST) (envelope-from ryanb@goddamnbastard.org) Received: by mx01.goddamnbastard.org (Postfix, from userid 1000) id 901F215550; Wed, 8 Jan 2003 10:32:21 -0600 (CST) Date: Wed, 8 Jan 2003 10:32:21 -0600 From: ryan beasley To: John Baldwin Cc: current@freebsd.org Subject: Re: panic: blockable sleep lock (sleep mutex) Giant @ /usr/src/s Message-ID: <20030108163221.GA2354@goddamnbastard.org> References: <20030106031821.GA92908@goddamnbastard.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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 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