Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp654836ybh; Sat, 3 Aug 2019 07:05:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUv4c/jnzgOLcBxCgRnq89vGvbsEWlm8imdxW75dK7FuaxSbUbC9OF9ANJZbFUfrmf6Bfe X-Received: by 2002:a17:90a:1b4c:: with SMTP id q70mr9139160pjq.69.1564841155567; Sat, 03 Aug 2019 07:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564841155; cv=none; d=google.com; s=arc-20160816; b=OX7FNLseSSDAcU9IzQdTPWKI9C9GnZBU3o2VghCYtkg5uVkHZJK1VJZhGca5Zty5FV f5HoHopFZFOHqqE+o8R7fHPh1Waz/eM24G5v+hTl7Rs3qx1IpyIX2ctKaXTiXdn/Mkgk gHuI0e1Y0+7wkClCHsoKHNXv6nIBsZBmFAFbyccfVKytbRdSRICWHwLjR6eM2uOsCtmi GhpFuq8TRmWbxcNlkd0eqoTX0IPoTzA7GXdsNcDIhsExYLLdIeyudFw2f7wQOhIEbfeV 29458v7/vD634ychO7Hk4xQhHzjEHpahmNvsEHyGLwei1QxIU+uKkFuL37F/tymX5Nlh 4eyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RMk/kiFyFZnRWtcRnl7bfSeKR/UZ4JlY5lTJe8BObXU=; b=hnsAYJcL792uwJprf6hgF5ej0iRL3+FEzmVTBwAQj4QRuGdI0vbd4H4GDaQvDtH7Yr tmvC5hRu8At+4v7kpe/DCaN0p5mdtD1hWP0cLYdj471aceLtDad/xZBLNN00eemEZvhB F9LudEvZYfHn52sozzC/JvJXHOwuxZNd089KoeLcMNL719iF7Qpp1ze42gytoVrWBpzf hq7l4Dk5ZJ7OsCbOoal2wjoQ/H3Xn9C4oG8QNlXvGrZT387hZt04Px4omuGTE1ND9Axf D+4eeedxUc47PDOYS4oBmQYvX9qfemgCFkvUl5RG8WLT+aoF/EDLka43CS0fe0OH5/q3 2H0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si38793365pfr.52.2019.08.03.07.05.39; Sat, 03 Aug 2019 07:05:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392311AbfHBOWe (ORCPT + 99 others); Fri, 2 Aug 2019 10:22:34 -0400 Received: from mga09.intel.com ([134.134.136.24]:45140 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726667AbfHBOWd (ORCPT ); Fri, 2 Aug 2019 10:22:33 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Aug 2019 07:22:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,338,1559545200"; d="scan'208";a="167245949" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by orsmga008.jf.intel.com with ESMTP; 02 Aug 2019 07:22:29 -0700 Date: Fri, 2 Aug 2019 08:19:52 -0600 From: Keith Busch To: john.hubbard@gmail.com Cc: Andrew Morton , Christoph Hellwig , Dan Williams , Dave Chinner , Dave Hansen , Ira Weiny , Jan Kara , Jason Gunthorpe , =?iso-8859-1?B?Suly9G1l?= Glisse , LKML , amd-gfx@lists.freedesktop.org, ceph-devel@vger.kernel.org, devel@driverdev.osuosl.org, devel@lists.orangefs.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-block@vger.kernel.org, linux-crypto@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-media@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-rdma@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-xfs@vger.kernel.org, netdev@vger.kernel.org, rds-devel@oss.oracle.com, sparclinux@vger.kernel.org, x86@kernel.org, xen-devel@lists.xenproject.org, John Hubbard , Dan Carpenter , Greg Kroah-Hartman , "Kirill A . Shutemov" , "Michael S . Tsirkin" , YueHaibing Subject: Re: [PATCH 26/34] mm/gup_benchmark.c: convert put_page() to put_user_page*() Message-ID: <20190802141952.GA18214@localhost.localdomain> References: <20190802022005.5117-1-jhubbard@nvidia.com> <20190802022005.5117-27-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190802022005.5117-27-jhubbard@nvidia.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Aug 01, 2019 at 07:19:57PM -0700, john.hubbard@gmail.com wrote: > From: John Hubbard > > For pages that were retained via get_user_pages*(), release those pages > via the new put_user_page*() routines, instead of via put_page() or > release_pages(). > > This is part a tree-wide conversion, as described in commit fc1d8e7cca2d > ("mm: introduce put_user_page*(), placeholder versions"). > > Cc: Dan Carpenter > Cc: Greg Kroah-Hartman > Cc: Keith Busch > Cc: Kirill A. Shutemov > Cc: Michael S. Tsirkin > Cc: YueHaibing > Signed-off-by: John Hubbard Looks fine. Reviewed-by: Keith Busch > mm/gup_benchmark.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/gup_benchmark.c b/mm/gup_benchmark.c > index 7dd602d7f8db..515ac8eeb6ee 100644 > --- a/mm/gup_benchmark.c > +++ b/mm/gup_benchmark.c > @@ -79,7 +79,7 @@ static int __gup_benchmark_ioctl(unsigned int cmd, > for (i = 0; i < nr_pages; i++) { > if (!pages[i]) > break; > - put_page(pages[i]); > + put_user_page(pages[i]); > } > end_time = ktime_get(); > gup->put_delta_usec = ktime_us_delta(end_time, start_time); > --