Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp62490rwb; Thu, 12 Jan 2023 03:35:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXulkQphOWqrAzYwBSlk6BLyHf7jYlf+9MYqN6RtZ415HbxffMpmCDhq8kh3PWDZ2qPcBsXQ X-Received: by 2002:a17:902:d918:b0:194:4b9a:ca90 with SMTP id c24-20020a170902d91800b001944b9aca90mr6109477plz.4.1673523353920; Thu, 12 Jan 2023 03:35:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673523353; cv=none; d=google.com; s=arc-20160816; b=YNzTKYm5LJFQDsfDKw4Z+tGEmCZpRQGJN2qu+ihlBy9M6jcoRGkPdEgh0mjeJbDkZL h1YP9Tdmh12kMqmXCwZI5gUgPpuNWwSpf28cI/JdKb5//sPmcvlWdRMAO+7SPmlT9ku/ dMgbKzpEw+GFvUXHnFUVnCAy5ZoXrZ/ndB6/C+WHAba5ngYbZ2LI5axLswEh25ypYMvT 7DEo6FeovTvVJXC8koPHpEQI1D/TkANW2bSRtokN0JkP3S1y4hgOjpxpX2Ese13pNPOy ipyHwpp3mKM8PZ+V/qE42xBShV730ofEGAlbp9Wd/9aNbQ0SlviAk8kqq/uUHd7mpNJG xzoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=4dkFkRWZUyU5kEKDjRnjZ/+Iyi+3josF/HBLQ+8tNZk=; b=Xa28br0YdMzkCL6HBfIIAfeqy4fI2CMoJCnwZQPkI/rkFiN4hEnC4MS83Pi0164AU3 1Sca7oEeNalW4Bh3v/cU6JWqpnnZMMhpBsx/CZPwzdDZo6LCpALKe9WbCJ3zwI0gt3lT pBbQ05J2i2vnwetw8yJcqALIRRf0meVepTjC3+XB00/FJRn6ddRBsHlnl/L6nQ40yB0H bAKoBlM2gIWZyRZY4CMTkAOSN6rL6/bABm4jLaB+DGtsItIewY/PjMlInJLvSzVgEgVB 5kvFFV1f13cgCV3t9qVX1mxUnhAyoMI7ixnlvdbwqYGsW2qKxyB54cCqPejknbprJbOT JNOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=g0NUAyTV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a170903120e00b00192de3fbb4asi17590463plh.261.2023.01.12.03.35.47; Thu, 12 Jan 2023 03:35:53 -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=@redhat.com header.s=mimecast20190719 header.b=g0NUAyTV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236265AbjALKiU (ORCPT + 49 others); Thu, 12 Jan 2023 05:38:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234857AbjALKho (ORCPT ); Thu, 12 Jan 2023 05:37:44 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7376751333 for ; Thu, 12 Jan 2023 02:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673519465; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4dkFkRWZUyU5kEKDjRnjZ/+Iyi+3josF/HBLQ+8tNZk=; b=g0NUAyTVC2xwZwLGfy2cjMwCwHDrYlEVd8rkh3iFwiAaq+hFMMl6qmmDIIjRr3Uj4qi3Ti NX7OqaQon08ed1PScXDXW+uW9ROC+L+P4ukO5Ih0tLYRc3Jg7IRQdV0G5m5q3dXlYEZK5j M8e35ldpxLpsYJh6wegxr1Ao2TiYHLg= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-130-ZVbWRtqtPv2wt_KeEy-Jkg-1; Thu, 12 Jan 2023 05:31:04 -0500 X-MC-Unique: ZVbWRtqtPv2wt_KeEy-Jkg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AA00E3C22745; Thu, 12 Jan 2023 10:31:03 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6DF202026D68; Thu, 12 Jan 2023 10:31:02 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <167344725490.2425628.13771289553670112965.stgit@warthog.procyon.org.uk> <167344727810.2425628.4715663653893036683.stgit@warthog.procyon.org.uk> To: Christoph Hellwig Cc: dhowells@redhat.com, Al Viro , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/9] iov_iter: Use IOCB/IOMAP_WRITE if available rather than iterator direction MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15329.1673519461.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Thu, 12 Jan 2023 10:31:01 +0000 Message-ID: <15330.1673519461@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Christoph Hellwig wrote: > > This allows all but three of the users of iov_iter_rw() to be got rid = of: a > > consistency check and a warning statement in cifs > = > Let's just drop these two. > = > > and one user in the block > > layer that has neither available. > = > And use the information in the request for this one (see patch below), > and then move this patch first in the series, add an explicit direction > parameter in the gup_flags to the get/pin helper and drop iov_iter_rw > and the whole confusing source/dest information in the iov_iter entirely= , > which is a really nice big tree wide cleanup that remove redundant > information. Fine by me, but Al might object as I think he wanted the internal checks. = Al? David