From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE857C43334 for ; Tue, 28 Jun 2022 20:13:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbiF1UN6 (ORCPT ); Tue, 28 Jun 2022 16:13:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230170AbiF1UNn (ORCPT ); Tue, 28 Jun 2022 16:13:43 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D878E3CFF7; Tue, 28 Jun 2022 13:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=rYwxNegCMlm2Id7OalQvY0kkmq2kUGQgEhzGLW81nyA=; b=Rd/meJi9pyM33xqBvPb52ogYx5 +QEXnHqLcKyDM5oz/wgW4Hw6mogY2/IsBSVZtluBYRmRBpAJ8fvEkmF2MXEpbOMoUZKx/FX8V+nfP fryxy98+UAYkhPF4HRcdFm1Ufkgl73Ve9rbWUZuQNOPspQBTxvkjE3rhCYbOTrIv24OAWcQp+y/DZ /A+c5NBwpzGy2uumpa79qRdosUqohYVQWbsS5j5Lx8n+9Nd1rb+djSciXOQoEy1F6zGcHsVw/r06/ LoLeWUF7W54o20f3W8iM0Zbh6TNm2P/HetjvvDRVws6O8yuBFl8IbL0jXxxYdh6MHvtOfMjAuVGPC Qkbrb7jQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1o6HTO-005jkE-Th; Tue, 28 Jun 2022 20:06:10 +0000 Date: Tue, 28 Jun 2022 21:06:10 +0100 From: Al Viro To: Pavel Begunkov Cc: io-uring@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S . Miller" , Jakub Kicinski , Jonathan Lemon , Willem de Bruijn , Jens Axboe , kernel-team@fb.com Subject: Re: [RFC net-next v3 05/29] net: bvec specific path in zerocopy_sg_from_iter Message-ID: References: <5143111391e771dc97237e2a5e6a74223ef8f15f.1653992701.git.asml.silence@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5143111391e771dc97237e2a5e6a74223ef8f15f.1653992701.git.asml.silence@gmail.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Tue, Jun 28, 2022 at 07:56:27PM +0100, Pavel Begunkov wrote: > Add an bvec specialised and optimised path in zerocopy_sg_from_iter. > It'll be used later for {get,put}_page() optimisations. If you need a variant that would not grab page references for ITER_BVEC (and presumably other non-userland ones), the natural thing to do would be to provide just such a primitive, wouldn't it? The fun question here is by which paths ITER_BVEC can be passed to that function and which all of them are currently guaranteed to hold the underlying pages pinned... And AFAICS you quietly assume that only ITER_BVEC ones will ever have that "managed" flag of your set. Or am I misreading the next patch in the series?