Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762330AbZCaTZn (ORCPT ); Tue, 31 Mar 2009 15:25:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753512AbZCaTZd (ORCPT ); Tue, 31 Mar 2009 15:25:33 -0400 Received: from rtr.ca ([76.10.145.34]:55591 "EHLO mail.rtr.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751858AbZCaTZc (ORCPT ); Tue, 31 Mar 2009 15:25:32 -0400 Message-ID: <49D26E28.1080203@rtr.ca> Date: Tue, 31 Mar 2009 15:25:28 -0400 From: Mark Lord Organization: Real-Time Remedies Inc. User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Ric Wheeler Cc: Linus Torvalds , Jens Axboe , =?UTF-8?B?RmVybmFuZG8gTHVpcyBWw6F6cXVleiBDYW8=?= , Jeff Garzik , Christoph Hellwig , Theodore Tso , Ingo Molnar , Alan Cox , Arjan van de Ven , Andrew Morton , Peter Zijlstra , Nick Piggin , David Rees , Jesper Krogh , Linux Kernel Mailing List , chris.mason@oracle.com, david@fromorbit.com, tj@kernel.org Subject: Re: [PATCH 1/7] block: Add block_flush_device() References: <49D02328.7060108@oss.ntt.co.jp> <49D0258A.9020306@garzik.org> <49D03377.1040909@oss.ntt.co.jp> <49D0B535.2010106@oss.ntt.co.jp> <49D0B687.1030407@oss.ntt.co.jp> <20090330175544.GX5178@kernel.dk> <20090330185414.GZ5178@kernel.dk> <20090330201732.GB5178@kernel.dk> <49D17CA2.5060105@redhat.com> <49D1FB64.8000505@redhat.com> <49D239A0.5080405@redhat.com> In-Reply-To: <49D239A0.5080405@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 990 Lines: 24 Ric Wheeler wrote: .. > As Mark pointed out, most S-ATA/SAS drives will flush the write cache > when they see a bus reset so even without barriers, the cache will be > preserved (or flushed) after a reboot or panic. Power outages are the > problem barriers/flushes are meant to help with. .. I still see barriers as a separate issue from flushes. Flushes are there for power failures and hot-removable devices. Barriers are there for that, but also for better odds of data integrity in the even of a filesystem or kernel crash. Even if I don't want the kernel needlessly flushing my battery-backed write caches, I still do want the barrier ordering that improves the odds of filesystem consistency in the event of a kernel crash. Cheers -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/