From owner-cvs-src@FreeBSD.ORG Mon Oct 10 11:01:53 2005 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02E5E16A421; Mon, 10 Oct 2005 11:01:53 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F61843D45; Mon, 10 Oct 2005 11:01:52 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 62B03BC74; Mon, 10 Oct 2005 11:01:50 +0000 (UTC) To: Peter Edwards From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 10 Oct 2005 11:56:34 BST." <34cb7c840510100356t1b93e679v6479afda16277afa@mail.gmail.com> Date: Mon, 10 Oct 2005 13:01:50 +0200 Message-ID: <13986.1128942110@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: src-committers@freebsd.org, Pawel Jakub Dawidek , Peter Edwards , cvs-src@freebsd.org, cvs-all@freebsd.org, S?ren Schmidt Subject: Re: cvs commit: src/sys/dev/ata atapi-cd.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 11:01:53 -0000 In message <34cb7c840510100356t1b93e679v6479afda16277afa@mail.gmail.com>, Peter Edwards writes: >> +> Please see geom_disk.c >> >I think an advantage to Poul-Henning's approach is that it reduces >latency: the I/O can start immediately, rather than requiring all the >bio's to be allocated first. The very fact that the race condition was >triggered indicates that the IO devices can overtake the CPU. You >might waste some time in the failure case, but that's obviously a >small price to pay for improved performance in the normal run of >things. Agreed. I've started wondering if I should actually put this code in a function so we don't have to reinvent it all over the place. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.