Re: invalidate_inode_pages in 2.5.32/3

Daniel Phillips
2002-09-24T16:21:11Z

On Tuesday 24 September 2002 00:43, Trond Myklebust wrote:
> >>>>> " " == Daniel Phillips <phillips@arcor.de> writes:
>
> >> Note that in doing so, we do not want to invalidate any reads
> >> or writes that may have been already scheduled. The existing
> >> mapping still would need to hang around long enough to permit
> >> them to complete.
>
> > With the mechanism I described above, that would just work.
> > The fault path would do lock_page, thus waiting for the IO to
> > complete.
>
> NFS writes do not hold the page lock until completion. How would you
> expect to be able to coalesce writes to the same page if they did?

Coalesce before initiating writeout? I don't see why NFS should be special
in this regard, or why it should not leave a page locked until IO has
completed, like other filesystems. Could you please explain?

--
Daniel