Re: [PATCH 2/2] CIFS: Simplify invalidate part (try #2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 22 Apr 2011 23:02:00 +0400
Pavel Shilovsky <piastry@xxxxxxxxxxx> wrote:

> 2011/4/22 Jeff Layton <jlayton@xxxxxxxxxx>:
> > 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 <jlayton@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux