Re: zero-copy TCP fileserving

David S. Miller (davem@redhat.com)
Thu, 3 Jun 1999 05:00:24 -0700


Date: Thu, 3 Jun 1999 12:45:48 +0200 (MET DST)
From: Bjorn Wesen <bjorn@sparta.lu.se>

Since the process sleeps while doing the write(), it cannot munmap
or do nasty things to the mapping I guess. But the above is
probably more complicated than it sounds :)

A thread certainly can, and for TCP the write can return before the
networking/driver can safely release the reference.

All of these issues will be dealt with by Stephen Tweedie's kiobuf
interface. If and when this goes into the standard kernel, you can be
sure I'll make the networking take advantage of it :-)

Later,
David S. Miller
davem@redhat.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/