Re: invalidate_inode_pages in 2.5.32/3

Trond Myklebust
2002-09-24T16:36:09Z

On Tuesday 24 September 2002 07:09, Daniel Phillips wrote:

> 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?

It does that for reads.

For writes, however, I see no point in keeping the page lock beyond what is
required in order to safely copy data from userland. To do so would give
disastrous performances if somebody was trying to write < page-sized records.
I belive this is true for all filesystems.
For some reason or another, the buffer stuff needs to re-take the page lock
when it actually performs the physical commit to disk. NFS doesn't need to do
this in order to perform an RPC call, so we don't...

Cheers,
Trond