From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 2/2] CIFS: Simplify invalidate part (try #2) Date: Fri, 22 Apr 2011 08:09:12 -0400 Message-ID: <20110422120912.GA8969@infradead.org> References: <1302635430-3575-1-git-send-email-piastry@etersoft.ru> <20110422075007.2e9c303b@tlielax.poochiereds.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jeff Layton , Steve French , Shirish Pargaonkar , Suresh Jayaraman , linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Pavel Shilovsky Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: On Fri, Apr 22, 2011 at 04:05:31PM +0400, Pavel Shilovsky wrote: > We call filemap_fdatawrite -> __filemap_fdatawrite(WB_SYNC_ALL) -> > __filemap_fdatawrite_range(WB_SYNC_ALL) -> do_writepages -> > cifs_writepages. > > cifs_writepages with WB_SYNC_ALL is sync operations (even with you > async writepages set) It really shouldn't be synchronous. The defintion of WB_SYNC_ALL is that it doesn't skip pages when initiating writeout, but you still have to wait for them to complete using filemap_fdatawait.