Re: invalidate_inode_pages in 2.5.32/3

Trond Myklebust (trond.myklebust@fys.uio.no)
Tue, 24 Sep 2002 18:40:39 +0200


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/