From: Jeff Layton Subject: Re: [PATCH 2/2] CIFS: Simplify invalidate part (try #2) Date: Fri, 22 Apr 2011 16:26:37 -0400 Message-ID: <20110422162637.4a149530@tlielax.poochiereds.net> References: <1302635430-3575-1-git-send-email-piastry@etersoft.ru> <20110422075007.2e9c303b@tlielax.poochiereds.net> <20110422101050.1472e618@tlielax.poochiereds.net> <20110422110724.0846b1b0@tlielax.poochiereds.net> <20110422125906.622a281b@tlielax.poochiereds.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Steve French , Shirish Pargaonkar , Suresh Jayaraman , linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Pavel Shilovsky Return-path: In-Reply-To: Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Fri, 22 Apr 2011 23:02:00 +0400 Pavel Shilovsky wrote: > 2011/4/22 Jeff Layton : > > Used to be synchronous. One of the goals of the async write patchset > > I'm working on is to change that. > > In this case, what do you think about to call filemap_fdatawait before > update attributes in gettattr and llseek? It seems that it makes us > sure that all dirty pages are written and we can get right file > attributes from the server. > Yeah, assuming that we write back immediately when notified of an oplock break, then that should be fine. -- Jeff Layton