Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1066226pxx; Tue, 27 Oct 2020 07:31:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz73NWfTqs6LprbxUg7RXQYQ+eCUKvm/dMimEuTuhFUWuh3mKOozBwv/PUJEDy2GdXJvQW2 X-Received: by 2002:a17:906:11d5:: with SMTP id o21mr2765506eja.401.1603809058821; Tue, 27 Oct 2020 07:30:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603809058; cv=none; d=google.com; s=arc-20160816; b=0BRa1iCfCPVoHK6Uz2P+aJzs2SjmUqP0Jh/CnYBdaZ62ZC/DBsq/lhwR44Ui+KLM9Z vmtmfj+v5y/9Yx6kGtBG81hBKIQ0yirgXKXUthJMkP2wbtI7zfUjHLVtnaPXldqRsVaV sdYtiY2U+Uz5tBz0Ea6YHNzngJz4YLsHv8D6EDonIRsXE/YE0cpPba9VWtwYtjX6Zxe3 hqZmUrCwUzYpZNvgR6/9AycUQc3iwDrry+bXdkSp2XfzSiSbiPP1KyzQKw6HgAlNlUkM Xmr0G+OPcXXTgxVsP21D3Ks728yehd4f8ypnO+pC6UBVoT5qMbph7fgTxLJB4WYzpysQ TnKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=SPJRGWDSMFGpgLMxJUw9Q6cz6gO7mBjQbh+X8Vg/IZs=; b=dImDoxutqNynFXNIKP2cH2JUdDqXbhGku8NedXGrbmRHM6KPsdkVJcz8lXVXO+gWTV pQFxCPvyKjNEF38DMJV8DzEZo4xlLcF6+fQY11PmcR9opzB9hyit6MSH6akeBmgu6bOC PfL+j5HmXQcgY70PSZt6l3cLy3pDo2O2SB18ppwUoO0RFCsaDPWxJi4Z9wFMhLGfOMeh spf7Scvpo/zqqCxkj6rEhAZje5nKvuZ7vNPPlo+XptMFRCDqROXANXZQd34hjqRyrm5r s2xMaAH8k3AU0uXt1KJtl7Lfp4Msjvvlk4VC9boo0A2KNlPK+zf4tCvtqQrhdNMVfPaK XDFg== ARC-Authentication-Results: i=1; mx.google.com; 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 t1si1122891ejb.712.2020.10.27.07.30.35; Tue, 27 Oct 2020 07:30:58 -0700 (PDT) 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; 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 S2896475AbgJ0J4S (ORCPT + 99 others); Tue, 27 Oct 2020 05:56:18 -0400 Received: from verein.lst.de ([213.95.11.211]:38240 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410126AbgJ0Jzs (ORCPT ); Tue, 27 Oct 2020 05:55:48 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id D8C2068B02; Tue, 27 Oct 2020 10:55:45 +0100 (CET) Date: Tue, 27 Oct 2020 10:55:45 +0100 From: Christoph Hellwig To: Jan Kara Cc: John Hubbard , Jason Gunthorpe , linux-kernel@vger.kernel.org, Andrea Arcangeli , Andrew Morton , Christoph Hellwig , Hugh Dickins , Jann Horn , Kirill Shutemov , Kirill Tkhai , Linux-MM , Michal Hocko , Oleg Nesterov , Peter Xu Subject: Re: [PATCH 1/2] mm: reorganize internal_get_user_pages_fast() Message-ID: <20201027095545.GA30382@lst.de> References: <1-v1-281e425c752f+2df-gup_fork_jgg@nvidia.com> <16c50bb0-431d-5bfb-7b80-a8af0b4da90f@nvidia.com> <20201027093301.GA16090@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201027093301.GA16090@quack2.suse.cz> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 27, 2020 at 10:33:01AM +0100, Jan Kara wrote: > Actually there are callers that care about partial success. See e.g. > iov_iter_get_pages() usage in fs/direct_io.c:dio_refill_pages() or > bio_iov_iter_get_pages(). These places handle partial success just fine and > not allowing partial success from GUP could regress things... But most users do indeed not care. Maybe an explicit FOLL_PARTIAL to opt into partial handling could clean up a lot of the mess. Maybe just for pin_user_pages for now.