splice(2) support for io_uring
Hi. Thanks for your splice io_uring patch. Maybe it will be good idea to add uring operation, which will unify splice, sendfile and copy_file_range instead of just IORING_OP_SPLICE? ==
Askar Safin
https://github.com/safinaskar
Quoted 1 line · Askar Safin
Hi. Thanks for your splice
io_uringpatch. Maybe it will be good idea to add uring operation, which will unify splice, sendfile andcopy_file_rangeinstead of justIORING_OP_SPLICE?
It doesn't have to follow splice(2) semantics, so can be extended, in theory.
Though I don't see much profit in doing that for now. sendfile(2) is done by splicing through an internal pipe, and this pipe will complicate things for io-wq (i.e. io_uring's thread pool). On the other hand, it'd be of the same performance and even more flexible to send 2 linked splice requests with a pre-allocated pipe from the userspace.
Signature · 1 line
Pavel Begunkov