From owner-freebsd-current@FreeBSD.ORG Tue Nov 6 21:38:21 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 DE7B616A474; Tue, 6 Nov 2007 21:38:21 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 5A57813C4A5; Tue, 6 Nov 2007 21:38:21 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8p) with ESMTP id 218050813-1834499 for multiple; Tue, 06 Nov 2007 16:38:36 -0500 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.8/8.13.8) with ESMTP id lA6LbxQt076173; Tue, 6 Nov 2007 16:38:03 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Tue, 6 Nov 2007 15:15:31 -0500 User-Agent: KMail/1.9.6 References: <0fbb01c81be1$37e698f0$0c00a8c0@Artem> <863avptzir.fsf@ds4.des.no> <20071102095506.GC24455@garage.freebsd.pl> In-Reply-To: <20071102095506.GC24455@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711061515.32551.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 06 Nov 2007 16:38:04 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/4684/Tue Nov 6 14:09:39 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Dag-Erling Sm??rgrav , 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:38:22 -0000 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. -- John Baldwin