From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail09.linbit.com (LINBIT Mail Daemon) with ESMTPS id 30DD21013809 for ; Wed, 12 Sep 2012 20:58:31 +0200 (CEST) Received: by pbbrp2 with SMTP id rp2so3310352pbb.27 for ; Wed, 12 Sep 2012 11:58:29 -0700 (PDT) Sender: Tejun Heo Date: Wed, 12 Sep 2012 11:58:24 -0700 From: Tejun Heo To: NeilBrown , Kent Overstreet , Jens Axboe , Philipp Reisner , linux-kernel@vger.kernel.org, Christoph Hellwig , Vivek Goyal , drbd-dev@lists.linbit.com Message-ID: <20120912185824.GS7677@google.com> References: <3029802.oqG0dEY71l@fat-tyre> <20120905084915.GF3195@dhcp-172-17-108-109.mtv.corp.google.com> <20120905100724.GA27527@soda.linbit> <20120906212952.GP29092@google.com> <20120907084221.GD7028@soda.linbit> <20120910225442.GE7677@google.com> <20120910230654.GF7677@google.com> <20120910233159.GE19739@google.com> <20120911155820.74f1f918@notabene.brown> <20120911082501.GH7028@soda.linbit> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120911082501.GH7028@soda.linbit> Subject: Re: [Drbd-dev] FLUSH/FUA documentation & code discrepancy List-Id: Coordination of development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hello, On Tue, Sep 11, 2012 at 10:25:01AM +0200, Lars Ellenberg wrote: > Or do we have a better place to document write ordering requirements? > > "To enforce write-after-write dependencies, you *have* to drain the > queue (do we have a generic interface available for that?), > or at least wait for the completion of all the requests you > (potentially) depend upon, before even submitting the dependent request. > > Additionally, to avoid integrity issues due to volatile caches, > you need to use FLUSH/FUA as appropriate." I think it would be best to note the lack of any ordering guarantee in the comment of bio_submit()? Any one interested in submitting a patch? Thanks. -- tejun