Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp896171pxb; Tue, 1 Feb 2022 12:40:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJy69ewacgBNzbPX+gw88WaQ49i9WZA5PWNh5bCGBLF3yL35c9+RIDdbGc80hRONtAGpytnB X-Received: by 2002:a17:90a:7024:: with SMTP id f33mr4327418pjk.15.1643748041439; Tue, 01 Feb 2022 12:40:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643748041; cv=none; d=google.com; s=arc-20160816; b=Sol0Xb1Zo0mjDbDfm9XDg344hPurNhDZq/V1iFzSLpxdjt3QTVZWJio9gvMLJKTsyX 7BbX4zouEjfJ6YxW6FJ2Aro8t0mxxKPcg/SscQOFJbzaKcGs8vK66GKC0m/VFS18KEq4 WVEC38UwSj6y7xLnNz6JYRLNqwthRuEJLzgNvU+lKV+iQGabDlbM8XYUqLBpoxswHOGE DNlBF27Stenk2SVboUA6XQ/Q4+JS2DV3Lqg6EWQ990bhDDQRW4bzHCIq+zWQGHuxcgcF B/jpr6PoWKsMaPyt8ng75zlp5K0nmF9TesbrLXHtDAAAsBKqMknqYveF2xh9kz5qkfxX OmJQ== 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=peHChX+dvslYcsfWY/zH1GowU+5RzB6143fTrnE3G1k=; b=BIR3pm+rgTThS4OPCtwr7692NMq3Vnh8KR5+d7KMpoPuvpdyc3KBNrnQmqYxqbZ8+s xfR7NEQH2HjZqOBV4I8d3geeV7aYer5t2bHBkf6bHNDJUxxUW/YDLqWCGF36FETHIpzo vswOnnRHpQQBUkRNQHxS7sTYtWyd1VEaB+TIFip2zdmRpzfe+8JwM8M9BSvaJmPloDMW EquFHPiYIBQOOG2T1wSpuejEIPlR1vlNRJEihq8RYWeMvfsR6qFmHLRmmJDPojf4UqRQ fQd7r+jjnF/VqyoeFV1E6qUV+ZLwsBjeGC6fXzR9IR1Ltq9BlTnyMLaNsKqRmQqL1ot0 VnYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=FfYz3imm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si1574890pfv.60.2022.02.01.12.40.29; Tue, 01 Feb 2022 12:40:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=FfYz3imm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378691AbiAaNgw (ORCPT + 99 others); Mon, 31 Jan 2022 08:36:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378432AbiAaNgv (ORCPT ); Mon, 31 Jan 2022 08:36:51 -0500 Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EBF8C06173D for ; Mon, 31 Jan 2022 05:36:51 -0800 (PST) Received: by mail-qv1-xf33.google.com with SMTP id g13so12775265qvw.4 for ; Mon, 31 Jan 2022 05:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=peHChX+dvslYcsfWY/zH1GowU+5RzB6143fTrnE3G1k=; b=FfYz3immfNmV2Ogq9ENoGUGQQehPwGA634TJY02OdFPo8zSOR4+aiae4kWBPbYUAjo cUKCyAiy9oVjQIu8ca2px+rsYMfFeyCKLWtWUrmOeioAx3rT9zCX/N8ESD0FBP7mON1u lo0EUlSrU4QyTEHtAqv0tklUx9c2MvvQNtR12CMxvP06BKOo243zDzN1BUw1lAKf4TUk 6FXZz+ySNaw3UXYXhUc60HnVkC/QxXZ1S2p2bys3QwNqdfg9sVggE4QqG1W5UC8SAtHc B8StRzKL30QxPM/XX2Sp6CO5iu5LE9ZL16o9PFxBRDJFB4XWaQMOB3ByXS3rwavGHZzq a5CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=peHChX+dvslYcsfWY/zH1GowU+5RzB6143fTrnE3G1k=; b=TLSVVehmSIlz+ClBfZW4TWEB5gYjdelRASGagl8YI8+rrTMz6GVnmjXAbw3/pvwzJZ TbI+q052hcaQTXXL+nkgn6yXrEdTz5RJTWCCsKI1lKu2vJkuDvVZ9ZhquuebfePkhzE2 lAYPtEVlalMl+4NguRJ0i7rCWwePwtI8r/Eo5O2gzgdDb1jRul5lNfDmuD8Y4AQsuxTl H/mzTx/ENPfEZ57K5bKbiK7zWYueQAYfZzwYU0Y1jrWtUgk6WaZ4Nzv4Nc1EXBYjJoHQ evJDKKiArwXjqxyHHsZAYmVArQ2JxmiqLFd+KkypcQx6DNt6im6PWPHlTSV6I8PV36t/ PQWA== X-Gm-Message-State: AOAM533Y2U5oluSpjEtGSprEUcFt1ktMAwQaz/RFv5kBilGxxggRmD/M BVORVUL+glm2KjJ7V2cYz+7A7w== X-Received: by 2002:a05:6214:e8c:: with SMTP id hf12mr17115912qvb.68.1643636210280; Mon, 31 Jan 2022 05:36:50 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-113-129.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.113.129]) by smtp.gmail.com with ESMTPSA id i18sm8130480qka.80.2022.01.31.05.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 05:36:49 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1nEWrR-009WBP-5e; Mon, 31 Jan 2022 09:36:49 -0400 Date: Mon, 31 Jan 2022 09:36:49 -0400 From: Jason Gunthorpe To: John Hubbard Cc: Andrew Morton , Peter Xu , Jan Kara , Claudio Imbrenda , "Kirill A . Shutemov" , Alex Williamson , Andrea Arcangeli , =?utf-8?B?SsOpcsO0bWU=?= Glisse , LKML , linux-mm@kvack.org Subject: Re: [PATCH 2/4] mm/gup: clean up follow_pfn_pte() slightly Message-ID: <20220131133649.GX8034@ziepe.ca> References: <20220131051752.447699-1-jhubbard@nvidia.com> <20220131051752.447699-3-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220131051752.447699-3-jhubbard@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 30, 2022 at 09:17:50PM -0800, John Hubbard wrote: > Regardless of any FOLL_* flags, get_user_pages() and its variants should > handle PFN-only entries by stopping early, if the caller expected > **pages to be filled in. > > This makes for a more reliable API, as compared to the previous approach > of skipping over such entries (and thus leaving them silently > unwritten). > > Cc: Peter Xu > Suggested-by: Jason Gunthorpe > Signed-off-by: John Hubbard > --- > mm/gup.c | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) I still think it should be squashed into the previous path, but otherwise Reviewed-by: Jason Gunthorpe Jason