Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp172363rwe; Tue, 23 Aug 2022 21:30:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Vqh9j2nJO/QG5vA7t8lpYw0wzSBsZXN6BT9oCxqbClCRnQM0FEpAcZGp6HMZo5ymibtfz X-Received: by 2002:a17:907:a218:b0:731:2b2b:f34 with SMTP id qp24-20020a170907a21800b007312b2b0f34mr1718062ejc.404.1661315400026; Tue, 23 Aug 2022 21:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661315400; cv=none; d=google.com; s=arc-20160816; b=x9NY3bNtT0/j6iEUn5CTOI0byBvnP6TK3QinHbtrHQgmxRJHeFwbCM9ilMQCiFOr9w EZd8NYHiA2GqduS706q83rwDQAa90fSO+zh5XBiJXhoY9AbIrKWlbMroI+nKxZQvY12g ajGl+LeZwmwXhjfyuawVvgsFyrjZu5ES9RTCnDO0ty084kxJ7+rMVYM7hQDHhYwfVLZ5 ARPdp0f2L+ph/+Eo+AfjjnrLg7jXaW1TCFjTsz17GUo4nUt7dKT/GvLxdScQBqGsc1zK ZD0R39sCRk0QLCoP6S/Irs0ugB6fCaQt1qhA3iplQuUUbouyWn8IkULChJN77x9jCepX uppQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=heuQpO/LsqP/UJ9tZYgQN1UYU4nAKypMbMGzQhkybws=; b=bZTWbZJEqO7wcvqMmGRxGwXNYu8u+8cWSI9aJPkaVDypy6cN68mbRlwDwtqo9JtULd 8ipDhhuCHD4GwwJh6gbMpxduYUsEXoIHokjNY4zWuioktLFDlWI0XYjgSjY3rYS9+zUg tUqKqWzUarLd8r1Jg0RSlhBtaxgnac09Eiz3FrAuckuF/4xbbSZRuyAqoejGpmThi+gu LU7/T+q/921yZzf1klE/y14KcMVWSWnZsP7V6dKhJpjfB4wQCB+h//0i54jDRpGhfV5d zygJl/GgCCgnqE8ibhWsPCqJZhFqUvvzKN48q0+YzXCmln9Ve/SPq+NBm3s7soHl/kbI kY0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=EKywbzjT; 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 du17-20020a17090772d100b00718bf486a1csi1194895ejc.782.2022.08.23.21.29.33; Tue, 23 Aug 2022 21:29:59 -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=@infradead.org header.s=bombadil.20210309 header.b=EKywbzjT; 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 S234386AbiHXDwi (ORCPT + 99 others); Tue, 23 Aug 2022 23:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232676AbiHXDwf (ORCPT ); Tue, 23 Aug 2022 23:52:35 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A20E548C96; Tue, 23 Aug 2022 20:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=heuQpO/LsqP/UJ9tZYgQN1UYU4nAKypMbMGzQhkybws=; b=EKywbzjTnQaHsqKrcAZFAKdYVa AnX8eqgD12noTB6D5LGPNK/i8Yr/BkQpnzCpNEXh8x0NT5eHJlTFtW94JoEZkaErt4vEPUWqRbYae 1wRThrEYV9B90bE3yDBlFlP0rA6zvHjlKmkNZy6wGLU0PYMGiQwRwjhdDijPGUGKEG4Wo4Og7bOh9 glilXETvkevKbdP83FTwVcDLeRmonrkiVksdgatJTJuwZsV4hARviS2o6RUF/txPBMXXRrJQ4p93u rR4o8xBkbya9vq+qte666tAT4pDsLXDh/AKSmDq+hAcU5QDNBOSQE2gHz86NawaOFo035dVcgFy3X rqRRE9qQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQhRF-00AKSo-JK; Wed, 24 Aug 2022 03:52:21 +0000 Date: Tue, 23 Aug 2022 20:52:21 -0700 From: Christoph Hellwig To: David Howells Cc: Steve French , Al Viro , Shyam Prasad N , Rohith Surabattula , Jeff Layton , linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/7] iov_iter: Add a function to extract an iter's buffers to a bvec iter Message-ID: References: <166126392703.708021.14465850073772688008.stgit@warthog.procyon.org.uk> <166126393409.708021.16165278011941496946.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <166126393409.708021.16165278011941496946.stgit@warthog.procyon.org.uk> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Tue, Aug 23, 2022 at 03:12:14PM +0100, David Howells wrote: > Copy cifs's setup_aio_ctx_iter() and to lib/iov_iter.c and generalise it as > extract_iter_to_iter(). This allocates and sets up an array of bio_vecs > for all the page fragments in an I/O iterator and sets a second supplied > iterator to bvec-type pointing to the array. Did you read my NACK and comments from last time?