Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5659672rwl; Sun, 8 Jan 2023 20:06:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXsG4YXVGnaBxluyAVL78lA9A9nlxRe0nQqgrxM6QmYHlCCokwfiDrgMUx2JM08IkQxToWRr X-Received: by 2002:a17:90a:64c5:b0:226:1713:6b9 with SMTP id i5-20020a17090a64c500b00226171306b9mr41018135pjm.37.1673237196926; Sun, 08 Jan 2023 20:06:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673237196; cv=none; d=google.com; s=arc-20160816; b=VT/aJKtErKS6AQbpUFWjJfgsIuHN2Mj9FT7DnYXJUz2FZuZnV5fXXQrHf7MdPawRDG ispGUKzI5yUyg3ysPVLr5kGb/Z+bHUJ6WSMPxXZhEE1DD5urBYfjl83WYh5EsWhpAuxQ CDh79d0byac7ZBcK0R55DPoqQtjT565qWM7rHc5xkxv58AL8WuqmxORtk3qa7oeay4kR DaitnMvFHv9nLskHEc+gindZshBHUUbqBWt0+v5XNW9ROsgg3fUW942bosxgWs5xdRSB 8cHBY8u748E0rNynvCsD2L/Gi6A9+rG7VxxXXXopfrG/9S752WfK1nDiWwC7w/60Ol4k tPrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=aPLGdbD4w3KTNSXThRBpSsjS7f9R9UPFXQ4iA1FrtvI=; b=iFrj/F7FHi8HwkDVTcr9rfijUmomKRLkk4S+AJRx6mrWtHsjvWcUZ/1XXr/KoiTyVy PrX9WtQEcgOtZl6N0oUPAXwRjWpXdfdPOQOFKxLMTGCt9ZxLhskiIP26jqQO5OcbX4YP U1bE0tcMAI7FlCRK9aSZJ//81op9nru9jQw2AfcORzkaRHqTVpAWM6kb7O7YtkptYoeq HDn0ppMYQFQezKy8Hcm73g0BJtqDE1t3L0m4QGpi9YSJ0L6k9q/AsPaDu4kclbO+hKl0 rqZxxrcLGW/81ARjJG64bHDhoFFAI/Wjnx5Q7eZGnu3g8gfXXDm9hu3GN3qrTv4XhBDK EwOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=nPPmYnBX; 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 oa13-20020a17090b1bcd00b00218641b1acdsi11515034pjb.68.2023.01.08.20.06.29; Sun, 08 Jan 2023 20:06:36 -0800 (PST) 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=nPPmYnBX; 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 S236435AbjAIDxx (ORCPT + 52 others); Sun, 8 Jan 2023 22:53:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236728AbjAIDxC (ORCPT ); Sun, 8 Jan 2023 22:53:02 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0520212770 for ; Sun, 8 Jan 2023 19:51:54 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id d9so8172238pll.9 for ; Sun, 08 Jan 2023 19:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=aPLGdbD4w3KTNSXThRBpSsjS7f9R9UPFXQ4iA1FrtvI=; b=nPPmYnBXei1dfYlS1rdCM2vB2N1VwVs01sjf7uRRBjye8S+HOHefmxparAACWmM1WD aMAqF3SCZOzl/6oJTTay0ycDo1Ce165iGmwv5opji1Y6bgcUmowgU1bWuGmeTs7+0fC7 dVIm84RuDd6Qv5ScegEDxJb3PaVDGCdI8kvbcg9J86poaHNp0BG+RUkTuiSUV5bJV9CA OyMoDvJL2A9BS40+lDXlmJ50fkeRkDrnadxJj6Ao0uevnhSxWcUA17SJXJUIZxeL+ATh 2pixxWYOSXnYEoRO56vtmDsE3RuMTL6f7SWYn/44iQ6FfkTjVHT0g9Cb1nSnJjYtS6Q6 ftiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aPLGdbD4w3KTNSXThRBpSsjS7f9R9UPFXQ4iA1FrtvI=; b=2Q7/AIX4OD0e5wrdrRRsfpzPLgNmyNr9hOOJs47XPsF6Z0hKVaq+V97mbxQiRku64z Dsl14rfXExv/8beEW+DXFH6yuknTrOYjDmaSN9mBsjSzvWR2BpUuogjEBTT7eSMQCPlr sYiRDcZzF5V+7bQFectStKB86u+OAqC1F1DcpGbA3HduJ7KahUKs21AkhPkDX1COe139 VS3qC+A1vcJmYD4PLAf1lScOZ/6xWu9OHa9oKD6m9L9yotJzqVL+/AJLy8CVkcWjoDLr JMCkXnopnA5Z1gVdgWmr04RpqyNQhy5fmm8OZYTXOW/vArNnl3OtBSUBu9IIh3G1Y5gV PlDQ== X-Gm-Message-State: AFqh2kr94HpPiT5Yx2hefh23Fb8vXP+iC5e9KIQ49k6fPViJNJmqsN7E fJaV+k6sEZZt7feMP0gt7FvwgQ== X-Received: by 2002:a17:902:a512:b0:192:5c3e:8952 with SMTP id s18-20020a170902a51200b001925c3e8952mr14756022plq.2.1673236305856; Sun, 08 Jan 2023 19:51:45 -0800 (PST) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id z3-20020a6552c3000000b0049b7b1205a0sm4278560pgp.54.2023.01.08.19.51.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Jan 2023 19:51:45 -0800 (PST) Message-ID: Date: Sun, 8 Jan 2023 20:51:43 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCHv2 00/12] iov_iter: replace import_single_range with ubuf Content-Language: en-US To: Keith Busch , linux-kernel@vger.kernel.org, Alexander Viro Cc: linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, hch@lst.de, io-uring@vger.kernel.org, Pavel Begunkov , Eric Dumazet , Steven Rostedt , davem@davemloft.net, Jakub Kicinski , Paolo Abeni , David Howells , Jarkko Sakkinen , Paul Moore , keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-block@vger.kernel.org, netdev@vger.kernel.org, Keith Busch References: <20230105190741.2405013-1-kbusch@meta.com> From: Jens Axboe In-Reply-To: <20230105190741.2405013-1-kbusch@meta.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 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 1/5/23 12:07 PM, Keith Busch wrote: > From: Keith Busch > > ITER_UBUF is a more efficient representation when using single vector > buffers, providing small optimizations over ITER_IOVEC. This series > introduces a helper to set these up, and replaces all applicable users > of import_single_range with the new helper. And since there are no > single range users left after this change, the helper is no longer > needed. > > As noted in v1(*), there are some fundamental differences to how io_uring > compares to read/write/readv/writev. There are only the two affected > file_operations, and they already do not work with io_uring due to their > diverging semantics for vectored vs non-vectored read/write. Therefore, > this series having io_uring prefer ubuf iov_iter isn't introducing new > breakage. Pondering how to stage this, both for later upstream but also for testing. Would probably make the best sense to stage 1-5 separately, and then just punt the remaining ones to the appropriate subsystems. And then 12/12 can go in when they have all been applied. -- Jens Axboe