Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
To: Pavel Shilovsky <piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
Cc: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Shirish Pargaonkar
	<shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org>,
	linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 2/2] CIFS: Simplify invalidate part (try #2)
Date: Fri, 22 Apr 2011 08:09:12 -0400	[thread overview]
Message-ID: <20110422120912.GA8969@infradead.org> (raw)
In-Reply-To: <BANLkTik4=FZ2hfPtjd6DtwkPGBAg0ij_JQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

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.

  parent reply	other threads:[~2011-04-22 12:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-12 19:10 [PATCH 2/2] CIFS: Simplify invalidate part (try #2) Pavel Shilovsky
     [not found] ` <1302635430-3575-1-git-send-email-piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org>
2011-04-15  9:41   ` Pavel Shilovsky
2011-04-21 14:06   ` Pavel Shilovsky
     [not found]     ` <BANLkTi=7eNfZXZPWYoPYY1CWsKqwvXkKNA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-22  8:09       ` Pavel Shilovsky
     [not found]         ` <BANLkTikfXi9U2A88S1_h8kXfyNhJcs9rzw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-22 11:50           ` Jeff Layton
     [not found]             ` <20110422075007.2e9c303b-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-04-22 12:05               ` Pavel Shilovsky
     [not found]                 ` <BANLkTik4=FZ2hfPtjd6DtwkPGBAg0ij_JQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-22 12:09                   ` Christoph Hellwig [this message]
     [not found]                     ` <20110422120912.GA8969-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2011-04-22 12:28                       ` Jeff Layton
2011-04-22 14:02               ` Steve French
     [not found]                 ` <BANLkTinMswT8Sur+Kv5JGb3jbObKnSC1mg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-22 14:10                   ` Jeff Layton
     [not found]                     ` <20110422101050.1472e618-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-04-22 14:54                       ` Steve French
     [not found]                         ` <BANLkTi=OmEDN-iFv_Tjg96_WshcJTvaXyQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-22 15:07                           ` Jeff Layton
     [not found]                             ` <20110422110724.0846b1b0-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-04-22 16:28                               ` Steve French
     [not found]                                 ` <BANLkTikzfTm00+u5uBo1E7cO_JaRtZkMVQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-22 16:59                                   ` Jeff Layton
     [not found]                                     ` <20110422125906.622a281b-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-04-22 18:13                                       ` Steve French
2011-04-22 19:02                                       ` Pavel Shilovsky
     [not found]                                         ` <BANLkTimshAUzTSE0UE9xR5b4sZihdCrdYQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-22 20:26                                           ` Jeff Layton
     [not found]                                             ` <20110422162637.4a149530-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-04-23 14:22                                               ` Steve French

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110422120912.GA8969@infradead.org \
    --to=hch-wegcikhe2lqwvfeawa7xhq@public.gmane.org \
    --cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=piastry-7qunaywFIewox3rIn2DAYQ@public.gmane.org \
    --cc=shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=sjayaraman-l3A5Bk7waGM@public.gmane.org \
    --cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox