Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5436652imw; Wed, 20 Jul 2022 05:53:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t97KlVt2a0Blr/IQ/4z0QwbLSgDDR2uosH8kffTPU9LkaypPRwdZgCQxDkAhHdH+xUf926 X-Received: by 2002:a17:90a:4e81:b0:1f2:12a9:7a4e with SMTP id o1-20020a17090a4e8100b001f212a97a4emr5338775pjh.130.1658321612907; Wed, 20 Jul 2022 05:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658321612; cv=none; d=google.com; s=arc-20160816; b=Hqk64SW6PgTV7uL45oSwY2Qyj93hf64fCeudXzux0zDpa49zOR0jUGl2WEUZ3colI8 /nlqtA9DxVJTqU/l51bS8sACjWVfms5lX8NRQNdo5p8KWrVsRc/7JXTZvAlv7584xZGq sxFyetL9g5++dwXi4z1KCer5SBXs1l0i6icjP4NkDhPIX9l2oWhkU77XIZaaT4yiaUOn UyGcAikr4vK5vrLVXlynBlm25KwsUZ4xQxZPxAfM7vnUnHBrOrp+Dr9GTC50DPYq/Q0J aUWXe2G7oZyz6vd3BFGVQDPvGw0KUlKoNIcxFGrcUESeKXX3Hhz/UISczL1mCXd1Ki0K 5xgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=a+qtmzzXRmiCZLPtii0K4DVzu9nTbF3p2kDITsU2fc4=; b=LX8J0ifhY3KkRAHcrlMUqDZXcDRzY6fn7uEg0quIfg/riSF/+lJyDiGgkxVYHSI4Pt J1pFB03H2VIoKCMMnqz5LcZYaeJnqguwvXNHDbG+ZkXYg3m/7xUfb+K4Ses4IuYREDSM DUDltiHd5EtCozRD0fwBiovpUQks0HCK8jteR+6W8UOBrAYaQwfkjeaso2Z70dj/WGwC Z1UYWGUwuIAnojlqeZMfUJA9iQt1FbpzPWgHMhNbYpZS/b30hAw2W7TFCKUqvXzR3Y9Y qJ0FpWcYokaMst8zDgis7++rQ/nv8OcQMtAaQEDMODoDxYSQystgGm961NhfQs0lKfIu hq3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=OFJC5vfD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020a170902789600b0016cf559cd63si9785533pll.152.2022.07.20.05.53.18; Wed, 20 Jul 2022 05:53:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=OFJC5vfD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238496AbiGTMqn (ORCPT + 99 others); Wed, 20 Jul 2022 08:46:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbiGTMql (ORCPT ); Wed, 20 Jul 2022 08:46:41 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 003BF29824 for ; Wed, 20 Jul 2022 05:46:40 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id x24-20020a17090ab01800b001f21556cf48so1936094pjq.4 for ; Wed, 20 Jul 2022 05:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=from:to:cc:in-reply-to:references:subject:message-id:date :mime-version:content-transfer-encoding; bh=a+qtmzzXRmiCZLPtii0K4DVzu9nTbF3p2kDITsU2fc4=; b=OFJC5vfD+HFETrKRo6YNhpbeXtd7/CtGhte1S9RcEq1IZyUCMFAtdnJ0vncTQyO9ib tdv9l2n8XJYzRHnu22TxJ0FsgLrMkd/QI70CkhbwbWPtM2TXklIw2Ou8yyt8WM9F7vw0 YdcnsklkM53aF2f4qBhqJ2gIfFVnHH5tCU/aXdbcOqfJkh22iz7GcxplMPv+sDd5i7gG MKv0xFG55i0/G/GOnQ/Mr5JD4zo1m5gKA3L9ZR3R0nC09Vl4OtQ095Ar2IqDxNKJ9DR3 6Qu2IizsQwNrhbr+7MqMlOwiSbSVFD1EBzpb9hT30pERgGd59oa2s2ONxZkWu5+EBSq1 K8Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:in-reply-to:references:subject :message-id:date:mime-version:content-transfer-encoding; bh=a+qtmzzXRmiCZLPtii0K4DVzu9nTbF3p2kDITsU2fc4=; b=w4Aq4cXTgdn3aoqmTY2nj0PE7CKF32qaXwzhFknc4p/XYqXwsKE3kbNgI8EFSKwZLa K7qtDTzd9ztuZloP4TnYgouE0c1F/V6Oe6AIG1ToO9eaRjYeAskl1xmxQ9cGhzWFwI8J ogMv+G/Ont5rrdcYFJbgxtl9D5gIA4sYghfBaW16jnexblKc6DJ41enReCKdIlYKaYlT 5DGuiZwRh7Q/5DyGo20X9vQVSr1sf1rKC05PXAabPzCQTaldtXV96Jk+hdWl/Yyl5M4c 0N00ohGVTGYWIuHdQjnyl+thNlad2jV2t1XcZ9W9AbBPsws4o8k0j4QqcQ9uI0+ejn5+ SGvg== X-Gm-Message-State: AJIora+Y4ipbuzQVqnWn2PtRBUVW+zXnGAl10lUemC3fbroVgwtm2y7h kKSCcCBk9QZ/PTc64sIRW6Maig== X-Received: by 2002:a17:90b:1997:b0:1ef:7bcd:e8c3 with SMTP id mv23-20020a17090b199700b001ef7bcde8c3mr5340706pjb.55.1658321200411; Wed, 20 Jul 2022 05:46:40 -0700 (PDT) Received: from [127.0.1.1] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id o17-20020a170902d4d100b0016be9fa6807sm3173171plg.284.2022.07.20.05.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 05:46:39 -0700 (PDT) From: Jens Axboe To: netdev@vger.kernel.org, asml.silence@gmail.com, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, willemb@google.com, jonathan.lemon@gmail.com, kernel-team@fb.com, dsahern@kernel.org In-Reply-To: References: Subject: Re: (subset) [PATCH net-next v5 00/27] io_uring zerocopy send Message-Id: <165832119923.248138.16883055488620625980.b4-ty@kernel.dk> Date: Wed, 20 Jul 2022 06:46:39 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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