From owner-freebsd-stable@FreeBSD.ORG Tue Aug 30 03:36:52 2005 Return-Path: X-Original-To: freebsd-stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4764516A41F for ; Tue, 30 Aug 2005 03:36:52 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0DD943D45 for ; Tue, 30 Aug 2005 03:36:51 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.3/8.13.3) with ESMTP id j7U3afcB014128; Mon, 29 Aug 2005 20:36:45 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200508300336.j7U3afcB014128@gw.catspoiler.org> Date: Mon, 29 Aug 2005 20:36:41 -0700 (PDT) From: Don Lewis To: jd@ugcs.caltech.edu In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: mckusick@mckusick.com, freebsd-stable@FreeBSD.org, mkb@incubus.de, markir@paradise.net.nz Subject: Re: Sysinstall automatic filesystem size generation. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2005 03:36:52 -0000 On 29 Aug, Jon Dama wrote: > It seems you need to add a layer of indirection. (owing to biodone being > called merely when the drive has cached the request). What you know is > that those operations marked completed by biodone are in fact done only > after a (costly) flush cache operation is executed. > > Therefore you want to delay this operation for as long as possible, in > fact until you actually depend on biodone being honest. I.e., at the time > another operation is inserted into the WORKLIST. > > The secret I think is to keep track of which bp's marked B_DONE by > biodone that have been certified by a flush cache. Thus permitting you to > avoid some cache flushes. Furthermore, the softdep code has to be > responsible for envoking the flush cache operation when it notices that > the B_DONE flag that it cares about does not have a matching > B_REALLY_DONE flag, which every block should have that had B_DONE set > before the flush cache operation happened. I believe you are correct.