From owner-cvs-all@FreeBSD.ORG Thu Sep 15 20:53:26 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5096A16A445; Thu, 15 Sep 2005 20:53:26 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 593CC43D49; Thu, 15 Sep 2005 20:53:25 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id D68B352CD7; Thu, 15 Sep 2005 22:53:22 +0200 (CEST) Received: from localhost (dkk194.neoplus.adsl.tpnet.pl [83.24.14.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 0B44452CCD; Thu, 15 Sep 2005 22:53:15 +0200 (CEST) Date: Thu, 15 Sep 2005 22:52:33 +0200 From: Pawel Jakub Dawidek To: John Baldwin Message-ID: <20050915205233.GA23141@garage.freebsd.pl> References: <200509151905.j8FJ5beJ008055@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <200509151905.j8FJ5beJ008055@repoman.freebsd.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng devel (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_intr.c subr_sleepqueue.c src/sys/geom geom_io.c src/sys/sys proc.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 20:53:27 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 15, 2005 at 07:05:37PM +0000, John Baldwin wrote: +> jhb 2005-09-15 19:05:37 UTC +>=20 +> FreeBSD src repository +>=20 +> Modified files: +> sys/kern kern_intr.c subr_sleepqueue.c=20 +> sys/geom geom_io.c=20 +> sys/sys proc.h=20 +> Log: +> - Add a new simple facility for marking the current thread as being in= a +> state where sleeping on a sleep queue is not allowed. The facility +> doesn't support recursion but uses a simple private per-thread flag +> (TDP_NOSLEEPING). The sleepq_add() function will panic if the flag = is +> set and INVARIANTS is enabled. +> - Use this new facility to replace the g_xup and g_xdown mutexes that = were +> (ab)used to achieve similar behavior. So is this still possible to use mutexes in I/O paths (g_up/g_down threads) or it will panic immediatelly? The policy for now was: using mutexes in a sane way is possible. The question is: did we went from a warning when WITNESS is enabled to a panic with INVARIANTS only? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDKd8RForvXbEpPzQRAotOAJ4n47PBn2tTPgLf/v4GZPM/ZZfXrgCcCE2r GKro8kdFYwwUPGLxYjgBOx0= =mGRl -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--