From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladislav Bolkhovitin Subject: Re: [RFC] relaxed barrier semantics Date: Fri, 30 Jul 2010 17:25:52 +0400 Message-ID: <4C52D2E0.5000609@vlnb.net> References: <20100728090025.GA9252@lst.de> <4C4FF592.9090800@kernel.org> <20100728092859.GA11096@lst.de> <20100729014431.GD4506@thunk.org> <4C51DA1F.2040701@redhat.com> <20100729194904.GA17098@lst.de> <4C51DCF1.3010507@redhat.com> <25F5E16E-968D-4FEF-8187-70453985B19B@dilger.ca> <20100729230406.GI4506@thunk.org> <4C52CBFF.6090406@vlnb.net> <20100730130957.GA26894@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Ted Ts'o , Andreas Dilger , Ric Wheeler , Tejun Heo , Vivek Goyal , Jan Kara , jaxboe@fusionio.com, James.Bottomley@suse.de, linux-fsdevel@vger.kernel.org, linux-scsi@vger.kernel.org, chris.mason@oracle.com, swhiteho@redhat.com, konishi.ryusuke@lab.ntt.co.jp To: Christoph Hellwig Return-path: Received: from moutng.kundenserver.de ([212.227.126.187]:58608 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756710Ab0G3NZp (ORCPT ); Fri, 30 Jul 2010 09:25:45 -0400 In-Reply-To: <20100730130957.GA26894@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Christoph Hellwig, on 07/30/2010 05:09 PM wrote: > On Fri, Jul 30, 2010 at 04:56:31PM +0400, Vladislav Bolkhovitin wrote: >> For a simpler device (a disk without support for ORDERED queuing) the >> same meta-data updates would be: >> >> 1. 1st journal write command >> >> 2. 2d journal write command >> >> 3. 3d journal write command >> >> 4. The queue draining. > > Which is complete overkill. We have state machines for everything we do > block I/O on (both data and the journal), which allows us to just wait > on the I/O requests we need inside the filesystem instead of draining > the queue, or enforce global ordering using ordered tags. Sure. It was only a naive example to illustrate my points. But the FS is still waiting for the requests, so "draining" its "local queue"? Vlad