Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3096690ybl; Mon, 19 Aug 2019 12:08:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNvjOgnDuJifHh7LiM13m7Llc93ch/jyzUNstxRZomXDokWmQk2ej8Tvfa6IVo4Eqm1jLP X-Received: by 2002:a63:b102:: with SMTP id r2mr21046001pgf.370.1566241711642; Mon, 19 Aug 2019 12:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566241711; cv=none; d=google.com; s=arc-20160816; b=ncvCQJo9VzKJ2dZCmBjYu7fNQcod0w2xh5GDHDBO+TcvhzQcdAxMxD+BxdavLKf4qc g2nAksADbjZrTcABxzW3s4Mc0CHdPsCd1PloxmF7tqvRV5H4lISUDWefKmO5HwNDkn5e B99lT5zAwBJEng9+gO7kef8HrvsjLLnsZ5Pc3oskofyeZI5YTvTnJ261YviGKjI6qgkw Fp+KriWuiRHR+RQXeXD+chYGlKlrojFtsiVOjB7LiWMzJwBa6xi4Tjz73kxdjc6/rryH kMZfez9mFnZ8ATR84mmRCtAfkRMRoHgRZs7Xno5YRQ7xn5BIS+1nkSGXUDZ4YsxH6Txv gVTg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XKxoNzwl2f7tdJUzSZBy+zHR43qV/Sy81NVyGH0mZAY=; b=wEyFMyqw7lzZgo/9aErVp5U95g7eV0UIvPlEFjLJ+dPL/n0LFHQ+Heunpxj2PDQm6O a68whEiRW31n0itISprv/2ExGf5p14sxcf5Rs/3cq3gaiUuC3L2lNSaWeUQBD3cw6k5n Auadex5ax46hYHFquLC5zCQnTgUPMnur2qP+MsqLEEKgjCGGG2rdu4cUqS6TfdEALTqM IrnyIhdc5EHhZVFpY5/RiAj8yvh1ooQCDSvcRcpgA7ORO/jWHtfjm5QfuPAb5B411Tsq 9QXAzVIyrjZYcW1W60Rig+afEcee1HMVwhvK3F2RZQIkaIyFJr4qI6by2S+ke0nhDDle Qs7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H5vnuhw5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si10399838pls.385.2019.08.19.12.08.16; Mon, 19 Aug 2019 12:08:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H5vnuhw5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728328AbfHSTG7 (ORCPT + 99 others); Mon, 19 Aug 2019 15:06:59 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43784 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727965AbfHSTG6 (ORCPT ); Mon, 19 Aug 2019 15:06:58 -0400 Received: by mail-pf1-f193.google.com with SMTP id v12so1709115pfn.10; Mon, 19 Aug 2019 12:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=XKxoNzwl2f7tdJUzSZBy+zHR43qV/Sy81NVyGH0mZAY=; b=H5vnuhw53+NFqjevMuItdNGkvMQO3oybGlnseLaTzRUYFaQqAmlEiFwe3cgkLC155a ffXc8jnVqNbeU7F0wO+ZFXomSROUm9d2loD/1r7jpAcGJ7uCJxSj01gt9hsheZreh/Dt F7fRPSfIJwfXpH+llgxQpv/PVq/xko9VYTeXdw8Js2Ll5eA1OqoCnXxwwpgNkv+ZSCdL dv7tYLjQ/DZXlWPEsE8lnaC3OyaGGwkoxyhyYWehk98rgkUJJwv7gE8gBT6stez3kqrz 1LKBaF+MZk4hoMH+BctaBbtPU1pPwOe0og8f29wb68PGbdNgorYdgEumGMPrFGr2hY10 yXEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=XKxoNzwl2f7tdJUzSZBy+zHR43qV/Sy81NVyGH0mZAY=; b=AAB5agow6vvwi9KHwcrbCBPiMa3a6iKAgCbWWLI/u0t4s6JbQdZcnuzZsEySfU8DRz qqTflzygJEEaCLvsfogJrIPaX/7IplUToK7HezNcsENWfodOSWS6ge0BEBTztrinEjF2 5mZ62HXzqAFPQPBeRa3sU9Fm1QMxqBlvNQH5i0FEBqMVlnOBEPFZ4aVGhR3ORHJrVaKD oS4cANFgumUPRaF6ktQapOgCI6CbErUo5LIAk6+wV9GCX/u/jajcjWRJ1nYufGdhSPXV wVA6hNLeeApcqOnWYjhYTgek9SuyYH2HarIT3WXxg6lqQ9pGgZWo5RzjxvHftodC7JqQ Nj+A== X-Gm-Message-State: APjAAAU9GQpa2f0y876U5DZdNGPYAmPUz/vZywkbYrfhmyuBZm6mhmhY v4rbFGZEltCNzR2QAdNr2pM= X-Received: by 2002:a63:4612:: with SMTP id t18mr21505996pga.85.1566241617995; Mon, 19 Aug 2019 12:06:57 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.34]) by smtp.gmail.com with ESMTPSA id k3sm28690589pfg.23.2019.08.19.12.06.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Aug 2019 12:06:57 -0700 (PDT) Date: Tue, 20 Aug 2019 00:36:47 +0530 From: Bharath Vedartham To: Dimitri Sivanich Cc: jhubbard@nvidia.com, jglisse@redhat.com, ira.weiny@intel.com, gregkh@linuxfoundation.org, arnd@arndb.de, william.kucharski@oracle.com, hch@lst.de, inux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [Linux-kernel-mentees][PATCH v6 1/2] sgi-gru: Convert put_page() to put_user_page*() Message-ID: <20190819190647.GA6261@bharath12345-Inspiron-5559> References: <1566157135-9423-1-git-send-email-linux.bhar@gmail.com> <1566157135-9423-2-git-send-email-linux.bhar@gmail.com> <20190819125611.GA5808@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190819125611.GA5808@hpe.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 19, 2019 at 07:56:11AM -0500, Dimitri Sivanich wrote: > Reviewed-by: Dimitri Sivanich Thanks! John, would you like to take this patch into your miscellaneous conversions patch set? Thank you Bharath > On Mon, Aug 19, 2019 at 01:08:54AM +0530, Bharath Vedartham wrote: > > 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: Ira Weiny > > Cc: John Hubbard > > Cc: J?r?me Glisse > > Cc: Greg Kroah-Hartman > > Cc: Dimitri Sivanich > > Cc: Arnd Bergmann > > Cc: William Kucharski > > Cc: Christoph Hellwig > > Cc: linux-kernel@vger.kernel.org > > Cc: linux-mm@kvack.org > > Cc: linux-kernel-mentees@lists.linuxfoundation.org > > Reviewed-by: Ira Weiny > > Reviewed-by: John Hubbard > > Reviewed-by: William Kucharski > > Signed-off-by: Bharath Vedartham > > --- > > drivers/misc/sgi-gru/grufault.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/misc/sgi-gru/grufault.c b/drivers/misc/sgi-gru/grufault.c > > index 4b713a8..61b3447 100644 > > --- a/drivers/misc/sgi-gru/grufault.c > > +++ b/drivers/misc/sgi-gru/grufault.c > > @@ -188,7 +188,7 @@ static int non_atomic_pte_lookup(struct vm_area_struct *vma, > > if (get_user_pages(vaddr, 1, write ? FOLL_WRITE : 0, &page, NULL) <= 0) > > return -EFAULT; > > *paddr = page_to_phys(page); > > - put_page(page); > > + put_user_page(page); > > return 0; > > } > > > > -- > > 2.7.4 > >