From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boaz Harrosh Subject: Re: [PATCH] exofs: Avoid using file_fsync() Date: Mon, 15 Jun 2009 19:52:33 +0300 Message-ID: <4A367C51.4080305@panasas.com> References: <4A364D15.1080105@panasas.com> <20090615135044.GA2553@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: open-osd mailing-list , linux-fsdevel , Al Viro To: Christoph Hellwig Return-path: Received: from ip67-152-220-66.z220-152-67.customer.algx.net ([67.152.220.66]:19572 "EHLO daytona.int.panasas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752096AbZFOQwd (ORCPT ); Mon, 15 Jun 2009 12:52:33 -0400 In-Reply-To: <20090615135044.GA2553@infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 06/15/2009 04:50 PM, Christoph Hellwig wrote: > On Mon, Jun 15, 2009 at 04:31:01PM +0300, Boaz Harrosh wrote: >> + ret = write_inode_now(inode, 0); > > You shouldn't need a write_inode_now, but rather just a similar > sync_inode call as in ext2 or the new simple_fsync as data was > already written by the VFS. > I looked into it some more and need your advise please? It looks simple_fsync, sync_inode, and write_inode_now all do __writeback_single_inode() inside. But write_inode_now also waits. I think I want to wait here, it's my close-to-open barrier. No? Thanks Boaz