From owner-freebsd-current@FreeBSD.ORG Sun Aug 17 16:12:52 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61FC31065686 for ; Sun, 17 Aug 2008 16:12:52 +0000 (UTC) (envelope-from matt@linuxbox.com) Received: from aa.linuxbox.com (aa.linuxbox.com [134.215.213.37]) by mx1.freebsd.org (Postfix) with ESMTP id E75378FC4D for ; Sun, 17 Aug 2008 16:12:51 +0000 (UTC) (envelope-from matt@linuxbox.com) Received: from trosper.private.linuxbox.com (trosper.private.linuxbox.com [10.1.1.45]) by aa.linuxbox.com (8.13.1/8.13.1/SuSE Linux 0.7) with ESMTP id m7HG2a9s021503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sun, 17 Aug 2008 12:02:36 -0400 Received: by trosper.private.linuxbox.com (Postfix, from userid 65534) id F3B3DDB22701; Sun, 17 Aug 2008 12:02:35 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on trosper.private.linuxbox.com X-Spam-Level: X-Spam-Status: No, score=-4.4 required=4.0 tests=ALL_TRUSTED,BAYES_00, UPPERCASE_25_50 autolearn=disabled version=3.1.7 Received: from localhost.localdomain (unknown [10.8.0.10]) by trosper.private.linuxbox.com (Postfix) with ESMTP id C9106DAF3A59 for ; Sun, 17 Aug 2008 12:02:33 -0400 (EDT) Message-ID: <48A84B6F.3090409@linuxbox.com> Date: Sun, 17 Aug 2008 12:01:51 -0400 From: Matt Benjamin User-Agent: Thunderbird 2.0.0.16 (X11/20080707) MIME-Version: 1.0 To: freebsd-current@freebsd.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (aa.linuxbox.com [10.1.1.1]); Sun, 17 Aug 2008 12:02:36 -0400 (EDT) Subject: lock_initalized X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Aug 2008 16:12:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi all, After tracking down what I think may be a spurious panic on 8.0-CURRENT, I wanted to ask: a. shouldn't this be, lock_initialized? b. is it safe to kassert the flag bit is unset on entry to mtx_init--seems this means caller has to null mtx before calling mtx_init (the initializer) Thanks, Matt - -- Matt Benjamin The Linux Box 206 South Fifth Ave. Suite 150 Ann Arbor, MI 48104 http://linuxbox.com tel. 734-761-4689 fax. 734-769-8938 cel. 734-216-5309 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIqEtvJiSUUSaRdSURCB6HAKCG4Evj8QM3Gp/58zwZVNKkTPZUGACfS/2u N/S2klXrn4X8+2rFlmn9pEU= =1s2v -----END PGP SIGNATURE-----