From owner-cvs-all@FreeBSD.ORG Sun Jul 3 01:11:49 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 89BB916AE02; Sun, 3 Jul 2005 00:58:45 +0000 (GMT) (envelope-from ps@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6DAC43FEE; Sun, 3 Jul 2005 00:43:48 +0000 (GMT) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id 4F9DE6DDCC; Sat, 2 Jul 2005 17:38:23 -0700 (PDT) X-Original-To: ps@mu.org Delivered-To: ps@mu.org Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by elvis.mu.org (Postfix) with ESMTP id 925A55C9CE for ; Thu, 27 Jan 2005 21:02:56 -0800 (PST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 9B31B56DFC for ; Fri, 28 Jan 2005 05:02:24 +0000 (GMT) (envelope-from owner-src-committers@FreeBSD.org) Received: by hub.freebsd.org (Postfix) id 84C2116A534; Fri, 28 Jan 2005 05:02:20 +0000 (GMT) Delivered-To: ps@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 538) id 5CCB916A4D0; Fri, 28 Jan 2005 05:02:16 +0000 (GMT) Delivered-To: src-committers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B3B016A4CE; Fri, 28 Jan 2005 05:02:14 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EA0743D54; Fri, 28 Jan 2005 05:02:14 +0000 (GMT) (envelope-from scottl@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 j0S52DL3091780; Fri, 28 Jan 2005 05:02:13 GMT (envelope-from scottl@repoman.freebsd.org) Received: (from scottl@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0S52DTf091779; Fri, 28 Jan 2005 05:02:13 GMT (envelope-from scottl) Message-Id: <200501280502.j0S52DTf091779@repoman.freebsd.org> From: Scott Long To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Sender: owner-src-committers@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on elvis.mu.org X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Level: Cc: Subject: cvs commit: src/sys/dev/ips ips.c ips.h ips_commands.c ips_disk.c ips_ioctl.c ips_pci.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sun, 03 Jul 2005 01:11:49 -0000 X-Original-Date: Fri, 28 Jan 2005 05:02:13 +0000 (UTC) X-List-Received-Date: Sun, 03 Jul 2005 01:11:49 -0000 scottl 2005-01-28 05:02:13 UTC FreeBSD src repository Modified files: sys/dev/ips ips.c ips.h ips_commands.c ips_disk.c ips_ioctl.c ips_pci.c Log: Lock the IPS driver and bring it out from under Giant. Also do some significant clean up and optimizations: - don't call bioq_disksort() on every command, the hardware will do that for us. - remove all of the complicated bio deferral code. bio's that can't be serviced immediately can just wait on the bioq. - Only reserve one command object for doing control commands to the card. This simplifies a lot of code and significantly reduces the size of the command struct. - Allocate commands out of a slab instead of embedding them into the softc. - Call the command action method directly instead of having ips_get_free_cmd() call it indirectly. MFC After: 1 week Revision Changes Path 1.14 +56 -90 src/sys/dev/ips/ips.c 1.12 +9 -15 src/sys/dev/ips/ips.h 1.12 +65 -119 src/sys/dev/ips/ips_commands.c 1.7 +3 -3 src/sys/dev/ips/ips_disk.c 1.6 +10 -4 src/sys/dev/ips/ips_ioctl.c 1.11 +6 -3 src/sys/dev/ips/ips_pci.c