Re: [PATCH] zerocopy NFS updated

David S. Miller
2002-04-12T21:47:05Z

From: Andi Kleen <ak@suse.de>
Date: Fri, 12 Apr 2002 14:35:59 +0200

On Fri, Apr 12, 2002 at 09:30:11PM +0900, Hirokazu Takahashi wrote:
> I analysis this situation, read systemcall doesn't lock anything
> -- no page lock, no semaphore lock -- while someone truncates
> files partially.
> It will often happens in case of pagefault in copy_user() to
> copy file data to user space.

I don't see it as a big problem and would just leave it as it is
(for NFS and local)

I agree with Andi. You can basically throw away my whole argument
about this. Applications that require synchonization between the
writer of file contents and reader of file contents must do some
kind of locking amongst themselves at user level.