Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3968819rwb; Mon, 5 Sep 2022 23:45:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ayutdCBXvv+UM7yLxTmjQvRT0yMXS98UBxUzVMmu2jjJkj3WxYAqxDgEpmxuNOesvq8+a X-Received: by 2002:a17:902:8486:b0:171:48cd:1356 with SMTP id c6-20020a170902848600b0017148cd1356mr50927996plo.153.1662446758468; Mon, 05 Sep 2022 23:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662446758; cv=none; d=google.com; s=arc-20160816; b=SNnigRiQF2WcE6x77+5YRP3OIcNguf7L5GhawNXVnJspXKgiDttWRMX2t5qoRBnS97 W5sJliiEJLBPT4SLbR8TE2+gBQD/JtlpNp7wvOn0GZJQF9JgXbyaq19EnvSL5x2PYk9g 7aOPjHyCbWbhnebTPkd6M0FH4rsxYS3201hm0VPJyzVYYLWstD/Yh1MFa+/OhxxmgAw5 jKg1owXQRvK+zQHSiMbJ6QU9dNxAywhA2VrAPn51mW7NDBg04xLAZEnE7PjCOAQBZzwl qbBc4OvK2L7SEG3PNa2Adqa93vfDdLqIMwQvOxbhJRZ+9q1nQVAhyqYLFeAK6bqAHP2Q NmjA== 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=kFNZmmVwOhX3BjOPJ3tln3iTlg4hrSY3aWoS1Dwfdhg=; b=uIRk7ra4t5iNjw5vxIyzUMKwy26ArnbNzo+VlIKDpOxXxW8xC91Vo0FPT61QgGyjl+ OJOCsUfZBBx2IKb8ElFv1RZiHOThnWKKTG4/kccj4769o7zWLkHEir4Gt2rWpAu3bt9r xh+KsEAcMdssqhQG1YjckwidB9lmuuOm6IY9yIwPBzhn4xvATVlm1bxFdX4FG9kvTRQa ZQgc20xmRnxOz9Eslci176n3XAc3KYvO+DjT3uUi+OpUCsdAC3GoBn6JSRJkxO6TiNpz Cghxu/4qonwMWYyhoXzF44IB0yTMkVfynmVMXDKmp+0j0140ZZsrKhQsUlpDEo6Zvy2f kFMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=yGw6sWaI; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-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 i62-20020a638741000000b004305c6dec4fsi12472254pge.167.2022.09.05.23.45.32; Mon, 05 Sep 2022 23:45:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=yGw6sWaI; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238421AbiIFGgY (ORCPT + 99 others); Tue, 6 Sep 2022 02:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238420AbiIFGgX (ORCPT ); Tue, 6 Sep 2022 02:36:23 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569494622B; Mon, 5 Sep 2022 23:36:19 -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=kFNZmmVwOhX3BjOPJ3tln3iTlg4hrSY3aWoS1Dwfdhg=; b=yGw6sWaI79F1sxKkVQaLBqfkMn ciPMa49hRCEsXC2e6QaC54/IVuW1x7URn7p9FAd8AYvAjhg/l+1gdoUkyxzOIxNQSBREX9xh7Ddi7 q2c0xDaqVAW+qvoITRmcqt4ZgncEoEdCsyZ+if/g0K63wSpNDe759gtusSOfiypyV3ckYrrwNjqKy fw+hMWUso0tMaAGn4D5npZ88RTr1mhqS1sde0A6s/XS2WYHo+CKamVL67MufxQdIBBU7Cql8EAIJ8 2S3PpJWk6hCoYJk1DgBfZbJROPvkE3hHk70QgGadjMpxViBoTBeQ/LLfjrtGr9lkOg7brY3tIdMCT o3mXVCUA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVSBm-00AS9k-Lz; Tue, 06 Sep 2022 06:36:02 +0000 Date: Mon, 5 Sep 2022 23:36:02 -0700 From: Christoph Hellwig To: John Hubbard Cc: Andrew Morton , Jens Axboe , Alexander Viro , Miklos Szeredi , Christoph Hellwig , "Darrick J . Wong" , Trond Myklebust , Anna Schumaker , Jan Kara , David Hildenbrand , Logan Gunthorpe , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-mm@kvack.org, LKML Subject: Re: [PATCH v2 0/7] convert most filesystems to pin_user_pages_fast() Message-ID: References: <20220831041843.973026-1-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220831041843.973026-1-jhubbard@nvidia.com> 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 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-nfs@vger.kernel.org On Tue, Aug 30, 2022 at 09:18:36PM -0700, John Hubbard wrote: > The conversion is temporarily guarded by > CONFIG_BLK_USE_PIN_USER_PAGES_FOR_DIO. In the future (not part of this > series), when we are certain that all filesystems have converted their > Direct IO paths to FOLL_PIN, then we can do the final step, which is to > get rid of CONFIG_BLK_USE_PIN_USER_PAGES_FOR_DIO and search-and-replace > the dio_w_*() functions with their final names (see bvec.h changes). What is the the point of these wrappers? We should be able to convert one caller at a time in an entirely safe way.