Skip to content

make splice more generic

Miklos Szeredi linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3splice: implement pipe to pipe splicingfs/splice.c+151 -110 replies
2/3splice: implement default splice_read methoddrivers/block/loop.c fs/coda/file.c fs/pipe.c +4 more+140 -248 replies
3/3splice: implement default splice_write methodfs/splice.c+138 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/3] make splice more generic

This series makes splice(2) work in more cases:

- pipe to pipe splicing (zero copy)
- fallback splice_read which uses readv()
- fallback splice_write which uses writev()

Just after cleaning up my patches after a vacation I found Max Kellermann's patch on LKML implementing the first part. I'll still post mine, because it's slightly simpler (no ref + unref on the buffer if not necessary).

One more generalization would be to allow splice to work on two non-pipes, using an internal intermediate pipe, a-la do_splice_direct().

Comments?

Thanks,
Miklos
--