From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA000C433DF for ; Tue, 26 May 2020 10:41:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5F7F52073B for ; Tue, 26 May 2020 10:41:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lOW+HXgz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F7F52073B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id F34C68009F; Tue, 26 May 2020 06:41:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EE5A380061; Tue, 26 May 2020 06:41:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DFB498009F; Tue, 26 May 2020 06:41:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0153.hostedemail.com [216.40.44.153]) by kanga.kvack.org (Postfix) with ESMTP id C5F5C80061 for ; Tue, 26 May 2020 06:41:11 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 80EB0824805A for ; Tue, 26 May 2020 10:41:11 +0000 (UTC) X-FDA: 76858527942.12.camp02_61ad1f854b008 X-HE-Tag: camp02_61ad1f854b008 X-Filterd-Recvd-Size: 4331 Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Tue, 26 May 2020 10:41:11 +0000 (UTC) Received: by mail-lj1-f196.google.com with SMTP id w10so23915322ljo.0 for ; Tue, 26 May 2020 03:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1Ry+3smoc7mCp1uPcR5k/a7m1osHOU0G7CR8vXULZZQ=; b=lOW+HXgzYB42cF/rhFtPrEV1DPp3z0Hcimy87m4EshA1FPzBMHRZg6ifPlxDGpwLaJ t7NhZQD7jdSFRRWTIyGXaX4Btb+hsajfJrvgP9QoRe7M5a+jXAIkXcBIOVET15jEprXK G94dJhAcGm88QDcosU8LybxInn1bd/YqidEIJR14HDh38uR5ntX/2G4oVZsCuoJI0S+o KHsPbh3IgWU23MyKcZFTmovaqJ5PxxaqzbB9nRsPyW5kFTi0b4OtGvpQV+1i8hAjyqeK 0FyAdNRsuRZddDzsMTJ/Wo8zXD0RGt7SnppeeWspYbVceFkHJrF+89zayNmzIPXEuePH +wIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1Ry+3smoc7mCp1uPcR5k/a7m1osHOU0G7CR8vXULZZQ=; b=YSd+SbsKc/Dx+qKZDZdEk99MrRYjDWacex2jgai30tUXcyTIfqGECr74+xYIgkqZgA UmfUDajH2fareOEUhWFIZAPU2p/6cbKooEWC5ltEys8POV2y4p0GTMPXqrsbINQG2EpE GV1LvZYvErPQfORDdPzQM6Cuo1cRsmmyz/3kBcX70gh3afFPRV8F6aM+GCu1QqKMkPFA +JErsNB4FOy1UpJi2XGrJA/1za5DymVBbDZbModc+baIdxISQHh7YzAfhbbBOWtvL8ns AojNmsZuO4eRxpl7Dz3qXwVB54CANsnZFP74ZDvg/yTf6v314cJRHCZlJwHUnlhpokAh czBg== X-Gm-Message-State: AOAM531vmGRf5jFEBP9NI7LMcYqIs6iKSRNMW3ysRbZEmejHb+/7s1Lg kuwnXGZ2huH8WVAaUQ2g1tE3cEsfG8pASn/uNRw= X-Google-Smtp-Source: ABdhPJyV5UNPT5wTZ5V1QRzvrkwK25GB+HGrijYwTV+7vkTwPuUSjO+tP4bYBkO+rleoRruyY3jfSDIh+hlPvjCFCSs= X-Received: by 2002:a2e:9087:: with SMTP id l7mr318222ljg.430.1590489669805; Tue, 26 May 2020 03:41:09 -0700 (PDT) MIME-Version: 1.0 References: <1590396812-31277-1-git-send-email-jrdr.linux@gmail.com> <20200526075904.GE282305@thinks.paulus.ozlabs.org> In-Reply-To: <20200526075904.GE282305@thinks.paulus.ozlabs.org> From: Souptick Joarder Date: Tue, 26 May 2020 16:10:43 +0530 Message-ID: Subject: Re: [linux-next PATCH] mm/gup.c: Convert to use get_user_{page|pages}_fast_only() To: Paul Mackerras Cc: Michael Ellerman , Benjamin Herrenschmidt , Andrew Morton , Peter Zijlstra , Ingo Molnar , acme@kernel.org, Mark Rutland , Alexander Shishkin , jolsa@redhat.com, namhyung@kernel.org, pbonzini@redhat.com, Stephen Rothwell , Mike Rapoport , "Aneesh Kumar K.V" , msuchanek@suse.de, kvm-ppc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Linux-MM , kvm@vger.kernel.org, Matthew Wilcox , John Hubbard Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, May 26, 2020 at 1:29 PM Paul Mackerras wrote: > > On Mon, May 25, 2020 at 02:23:32PM +0530, Souptick Joarder wrote: > > API __get_user_pages_fast() renamed to get_user_pages_fast_only() > > to align with pin_user_pages_fast_only(). > > > > As part of this we will get rid of write parameter. > > Instead caller will pass FOLL_WRITE to get_user_pages_fast_only(). > > This will not change any existing functionality of the API. > > > > All the callers are changed to pass FOLL_WRITE. > > > > Also introduce get_user_page_fast_only(), and use it in a few > > places that hard-code nr_pages to 1. > > > > Updated the documentation of the API. > > > > Signed-off-by: Souptick Joarder > > The arch/powerpc/kvm bits look reasonable. > > Reviewed-by: Paul Mackerras Thanks Paul. This patch is merged through mm-tree. https://lore.kernel.org/kvm/1590396812-31277-1-git-send-email-jrdr.linux@gmail.com/