Re: [PATCH] zerocopy NFS updated

David S. Miller (davem@redhat.com)
Fri, 12 Apr 2002 14:39:34 -0700 (PDT)


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.
-
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/