On Tue, 12 Jul 2022 21:52:24 +0100, Pavel Begunkov wrote: > NOTE: Not to be picked directly. After getting necessary acks, I'll be > working out merging with Jakub and Jens. > > The patchset implements io_uring zerocopy send. It works with both registered > and normal buffers, mixing is allowed but not recommended. Apart from usual > request completions, just as with MSG_ZEROCOPY, io_uring separately notifies > the userspace when buffers are freed and can be reused (see API design below), > which is delivered into io_uring's Completion Queue. Those "buffer-free" > notifications are not necessarily per request, but the userspace has control > over it and should explicitly attaching a number of requests to a single > notification. The series also adds some internal optimisations when used with > registered buffers like removing page referencing. > > [...] Applied, thanks! [12/27] io_uring: initialise msghdr::msg_ubuf commit: 06f241e2bf4ba2a3e77269be25d21c0196a57a4f [13/27] io_uring: export io_put_task() commit: ba64c07a6ef9a05ca9eb09e13b70df7500e78cf8 [14/27] io_uring: add zc notification infrastructure commit: 6f322c753daee4b9d4ad494d4e8b05da610d804c [15/27] io_uring: cache struct io_notif commit: cf49e2d47c49e547d4bc370efe73785fc82354e5 [16/27] io_uring: complete notifiers in tw commit: 9cc16ae447db07d210175d2ad2419784dd20f784 [17/27] io_uring: add rsrc referencing for notifiers commit: e133e289093ea35c1f7f940fe4c0ceb62037dc59 [18/27] io_uring: add notification slot registration commit: f20b817fd29b64ef6de24b83ef23e1f3fb273967 [19/27] io_uring: wire send zc request type commit: 480ec5ff9a5a75d68423c0bd02e57a9ee6325320 [20/27] io_uring: account locked pages for non-fixed zc commit: fcb98e61d0232cff7dd14ae85ad1c88d68f98273 [21/27] io_uring: allow to pass addr into sendzc commit: 7ab12997edc9aa3e2be4169f929c50a1fcd41004 [22/27] io_uring: sendzc with fixed buffers commit: bb4019de9ea11d21137b4a8ff01d9e338071d633 [23/27] io_uring: flush notifiers after sendzc commit: 95a70c191696da64a6ae235d52132a5c17866dae [24/27] io_uring: rename IORING_OP_FILES_UPDATE commit: d488e605a45192f9f60c7624d46ba0b8c4d93aab [25/27] io_uring: add zc notification flush requests commit: cb155defb9bf20a647c8825a085695f3f94fdb60 [26/27] io_uring: enable managed frags with register buffers commit: 04ae3dbe8a027cf10ab759456ffc4fb119486f74 [27/27] selftests/io_uring: test zerocopy send commit: 0c450de20ce7d6bc8a2f97c98387baf910454477 Best regards, -- Jens Axboe