From owner-cvs-all@FreeBSD.ORG Sat Jun 26 23:27:56 2004 Return-Path: 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 88E3016A4D1; Sat, 26 Jun 2004 23:27:56 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A9C343D1D; Sat, 26 Jun 2004 23:27:56 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5QNRgvw080319; Sat, 26 Jun 2004 23:27:42 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5QNRgrC080318; Sat, 26 Jun 2004 23:27:42 GMT (envelope-from rwatson) Message-Id: <200406262327.i5QNRgrC080318@repoman.freebsd.org> From: Robert Watson Date: Sat, 26 Jun 2004 23:27:42 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/geom geom_io.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 26 Jun 2004 23:27:56 -0000 rwatson 2004-06-26 23:27:42 UTC FreeBSD src repository Modified files: sys/geom geom_io.c Log: The g_up and g_down threads use a local 'mymutex' mutex to allow WITNESS to warn about attempts to sleep in the I/O path. This change pushes the definition and use of 'mymutex' behind #ifdef WITNESS to avoid the cost in non-debugging cases. This results in a clear .22% performance win for 512 byte and 1k I/O tests on my SMP test box. Not much, but every bit counts. Revision Changes Path 1.56 +16 -0 src/sys/geom/geom_io.c