Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1734143rwe; Sat, 27 Aug 2022 15:52:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Sgyj7ksELnSxHlRHiBIrKlFKgbH9+NH0C/ph3IYdZ/IZVa1sOH6l3OvzL28dBFldk/RBi X-Received: by 2002:a17:902:6b4c:b0:171:38ab:e762 with SMTP id g12-20020a1709026b4c00b0017138abe762mr9978972plt.42.1661640752700; Sat, 27 Aug 2022 15:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661640752; cv=none; d=google.com; s=arc-20160816; b=joruRcsYI3F6TR9lyvnrl4G68FkUtSdl0aM/mNPw8oVb+p7edHGIzIHpUbOmU8skGi 8XRrJ9Dye58RBsCOSnEP69P+M9p2uuuzDA+gex+555GEAp/OPA7SzKqlDiqrdEQJRzvA 9vwm6z5PFRSyf649PyoftApjVpt908HLv+7ZrcndnVRvqSBF2cfeckorouv6IISpF/8f qBUmQsH1PaYQKb9O4LqzX7DyI0S+CmjDPKuRSPCYgICTlCZ2k3hEoX3afL+1d8rOZuMr FozYPkepuLKNPg4xdMMUnH6ED7h+n42pTZUKVizT8RHT2heSPsEPmWPpQTNuVRx9y5KG 0QkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1/n2J4xjTn1ap1GZ0mLWYdRRj9CyoF5AMUAXfowIlzs=; b=JpY+Qionhhg02wcZFMhEg+hxSKn5Fj8Le+lR5oqyQGbTrUszBks7B6SbVNK15kUEpv F6kyrAg0eAVOPBsfVBB+PI3gyE5kT3//YJO9u5y1ZwVjpDOM4VKh/4dmzyntkMzL9vPo Z32AZRcRFmSABTfbuQNs/LguV3/UQVA5t11FROPN7YFCI97PCjYv+InCeqmp5lTzQnuR 2Nf/F+vNINl8nCdDQfI7Q6GHb/9aePfcE3Ts9AS56+Jx0LP4A2u0KskuYashf14t2097 1PTnfVe2FRW/lpMtZPSBxQFKVYRpB0F3KTD1XFe5zTkiey3zfoIjeh5v2SRY71PQfnjF 8Rkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=VQB77bVg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nl14-20020a17090b384e00b001fd80622a64si3646486pjb.98.2022.08.27.15.52.20; Sat, 27 Aug 2022 15:52:32 -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=@linux.org.uk header.s=zeniv-20220401 header.b=VQB77bVg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbiH0WtK (ORCPT + 99 others); Sat, 27 Aug 2022 18:49:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbiH0WtJ (ORCPT ); Sat, 27 Aug 2022 18:49:09 -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 B4AC057276; Sat, 27 Aug 2022 15:49:08 -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=1/n2J4xjTn1ap1GZ0mLWYdRRj9CyoF5AMUAXfowIlzs=; b=VQB77bVgY7MH7hA2Hn3yJithb+ V8KT+xXMkNvkM+W2DGKX82e0A//vw316FKFIHqRgk6O9CrA+C8zHxRnwqm3nyPoPu2WsJ+waOhMCF Jnu8m8s49cvLx5ENkFjAm1TdMp3ZE0MRVDKJbYSsQYLiOGvnfJ6mb1K+Z+f4IEUhM7KDDrzltYylA +0t+Uh80kIBihaZu9HvaQ08CmO7adGSLmcf0ZPEc7ja0f6I/3SecgrPVuaTf1fw7VDEx9C+/tJpcz rvUQFTFaQoN0wFFapShfTahamvtb7K5Lz1xDtw4WVMyy8CWWC8ek6iSD85/zn97COw4JQpWjM+6g0 2x4NUq3A==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1oS4bq-0097kK-Eb; Sat, 27 Aug 2022 22:48:58 +0000 Date: Sat, 27 Aug 2022 23:48:58 +0100 From: Al Viro To: John Hubbard Cc: Andrew Morton , Jens Axboe , Miklos Szeredi , Christoph Hellwig , "Darrick J . Wong" , Trond Myklebust , Anna Schumaker , Jan Kara , 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 5/6] NFS: direct-io: convert to FOLL_PIN pages Message-ID: References: <20220827083607.2345453-1-jhubbard@nvidia.com> <20220827083607.2345453-6-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220827083607.2345453-6-jhubbard@nvidia.com> Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,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 Sat, Aug 27, 2022 at 01:36:06AM -0700, John Hubbard wrote: > Convert the NFS Direct IO layer to use pin_user_pages_fast() and > unpin_user_page(), instead of get_user_pages_fast() and put_page(). Again, this stuff can be hit with ITER_BVEC iterators > - result = iov_iter_get_pages_alloc2(iter, &pagevec, > + result = dio_w_iov_iter_pin_pages_alloc(iter, &pagevec, > rsize, &pgbase); and this will break on those.