From owner-freebsd-current@FreeBSD.ORG Tue Nov 6 21:53:40 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A93BB16A41B; Tue, 6 Nov 2007 21:53:40 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id CAA5E13C4BC; Tue, 6 Nov 2007 21:53:38 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.8/8.13.8) with ESMTP id lA6LrWxt065020; Tue, 6 Nov 2007 14:53:33 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <4730E25A.6030407@samsco.org> Date: Tue, 06 Nov 2007 14:53:30 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: John Baldwin References: <0fbb01c81be1$37e698f0$0c00a8c0@Artem> <863avptzir.fsf@ds4.des.no> <20071102095506.GC24455@garage.freebsd.pl> <200711061515.32551.jhb@freebsd.org> In-Reply-To: <200711061515.32551.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Tue, 06 Nov 2007 14:53:33 -0700 (MST) X-Spam-Status: No, score=-1.4 required=5.5 tests=ALL_TRUSTED autolearn=failed version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: Dag-Erling Sm??rgrav , freebsd-current@freebsd.org, Artem Kuchin , Pawel Jakub Dawidek Subject: Re: BIO_FLUSH on twe driver. Why is it not there? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 21:53:40 -0000 John Baldwin wrote: > On Friday 02 November 2007 05:55:07 am Pawel Jakub Dawidek wrote: >> On Thu, Nov 01, 2007 at 10:41:00PM +0100, Dag-Erling Sm??rgrav wrote: >>> "Artem Kuchin" writes: >>>> However, twe is working via scsi subsystem and the authour of gjournal >>>> said somewhere that he has had implemeneted BIO_FLISH for scsi and he >>>> specifically mentioned that he has tested twe and twa and they both >>>> support BIO_FLUSH. >>> twa(4) uses CAM, but twe(4) doesn't (and never has). >> That was my mistake. Someone told me (I think it was jhb@), that twe(4) >> turns off write cache automatically when there is no battery, so >> BIO_FLUSH isn't really needed and if there is a battery, it also isn't >> really needed. It would be nice to hide the warning in this case >> somehow, but for now you should be safe by simply ignoring the warning. > > I have no idea if twe(4) does this. I do know that both ciss(4) and mfi(4) > do this. Possibly amr(4) as well. > MFI can be overridden trivially, and so can AMR, so I don't consider them to be good examples. Scott