From owner-cvs-all@FreeBSD.ORG Wed Feb 9 08:29:40 2005 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 8DBE616A4CE; Wed, 9 Feb 2005 08:29:40 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6336043D1F; Wed, 9 Feb 2005 08:29:40 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j198TejB057567; Wed, 9 Feb 2005 08:29:40 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j198TeLR057566; Wed, 9 Feb 2005 08:29:40 GMT (envelope-from pjd) Message-Id: <200502090829.j198TeLR057566@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 9 Feb 2005 08:29:40 +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/gate g_gate.c g_gate.h 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: Wed, 09 Feb 2005 08:29:40 -0000 pjd 2005-02-09 08:29:39 UTC FreeBSD src repository Modified files: sys/geom/gate g_gate.c g_gate.h Log: - Remove g_gate_hold()/g_gate_release() from start/done paths. It saves 4 mutex operations per I/O requests. - Use only one mutex to protect both (incoming and outgoing) queue. As MUTEX_PROFILING(9) shows, there is no big contention for this lock. - Protect sc_queue_count with queue mutex, instead of doing atomic operations on it. - Remove DROP_GIANT()/PICKUP_GIANT() - ggate is marked as MPSAFE and no Giant there. Revision Changes Path 1.15 +36 -54 src/sys/geom/gate/g_gate.c 1.4 +4 -5 src/sys/geom/gate/g_gate.h