[PATCH 2/4] cache: use sendfile() instead of a pair of read() + write()

Jason A. Donenfeld Jason at zx2c4.com
Sun Jan 19 16:17:13 CET 2014


On Sun, Jan 19, 2014 at 3:13 PM, Jason A. Donenfeld <Jason at zx2c4.com> wrote:
> Would you mind sending another commit where you implement this for the
> read() write() situation in authenticate_post() on
> http://git.zx2c4.com/cgit/tree/cgit.c#n624 ? Still bounding it to
> MAX_AUTHENTICATION_POST_BYTES, but not having to copy it back to
> userspace?


On second thought, don't. Since we're hooking write() here, it doesn't
make too much sense to do. Silly me.


More information about the CGit mailing list