Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7557402ybi; Mon, 22 Jul 2019 15:40:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOOQBQ0I6bCMCDItgJ+Lxip1OIxwgrgBeDbY76SSzF7xtpmU47cI5sr4k+4WgKQy7iyUxG X-Received: by 2002:a62:4e86:: with SMTP id c128mr2503948pfb.64.1563835206975; Mon, 22 Jul 2019 15:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563835206; cv=none; d=google.com; s=arc-20160816; b=h6//cJYv4Q3EI1UsV/6ZK9PrWY2JuK0hACym9uOSwD4nAHmrCu20ZuKsyvSAe/Xqc1 RvxeBBVpWAPfSgxlJH5uQu0jFSEebWkhUpxt4DvIo8YWk6VYzGdbvrojxMVfXeMBIXuN v7XJr6j+cxRK2zE+mCJ+BBp9+2M+/HGmGv/A8cDeE95xK9VY9toPd/2uieJL5O2Xvg5T 8qLxQXPCDrcSWoC5HV8+tzbFnYDSaglpKoblfbwuwlfWc8mcin+YUl02iq50v7SOzYX6 N8O2SQ/NkGFoXXMk4uGtzNFkaksJdOuUkjVLU7nc7WHwt6WXhYLTNq2RJU6LY3Vogit7 HXcA== 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=ssliLyV8U+mhRbl4ipf9bRa3EL22Ezd5Zc9rGXszSvs=; b=f+2d4exCEotbfzF/mwXWEC9dorBODXpneTOBvCo86p6xm9XKSle7E47sJvCJx/suhE j2iiTdns+B5RYOEocvsBT+rIeqrGiIdnzwgiXQYqri/17loKWxU80q0HgvfBLmTNU+7a HtZIArKFAqzfaBpnDz4qVEPZsrnpz7D4gOrKSUGG2M+AcTOfAq4le59GmjvL7efPdivq h9lezjXd4gLExCFDJKZJkZFYHwFv+0aPCoKrOZ4fUrdZSGAyTQy5TgtgtS3H7oK4WE9a p/AfQlHEn2VOTfGD/L+Ao6fCfLbP0GfXWxX0uQ6x9q7Bz7Z9gdopJGcf2alh/Zqr2m3j PXtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C5w+mGxc; 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 t25si12135241pgn.160.2019.07.22.15.39.50; Mon, 22 Jul 2019 15:40:06 -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=C5w+mGxc; 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 S1728985AbfGVRrd (ORCPT + 99 others); Mon, 22 Jul 2019 13:47:33 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33584 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727021AbfGVRrc (ORCPT ); Mon, 22 Jul 2019 13:47:32 -0400 Received: by mail-pf1-f195.google.com with SMTP id g2so17732551pfq.0 for ; Mon, 22 Jul 2019 10:47:32 -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=ssliLyV8U+mhRbl4ipf9bRa3EL22Ezd5Zc9rGXszSvs=; b=C5w+mGxcCfYenODdQNw1QcoLPL+bTkqpAf1/84e6VjiF/EoUBRTpVAR+fNjCytOAWp odi5USyMM1CmgRscWbz7evmXa7roPGotsByCf0dCTZYoBvFSPOM8gPIGhpelZJSVH4kB hmL7ht19DHj9QHK7nirEINAtPWdthi1fyy909XKPUyZ0sF2ocOcpxFB7WTDRSZe0K810 cFeY4feogogD3qQW80cDHyCXQa084E3fdKJZBNveSLtwkmItkyXKczLr82vjNBMn8GOC D8FspNPt0fikrMjAzRzXpw3qh+0sRFbGrB73QY18Lv1wx61yQFRX5ooBCKklMPAlbkQs BRdg== 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=ssliLyV8U+mhRbl4ipf9bRa3EL22Ezd5Zc9rGXszSvs=; b=ilTg3cbrJPthqrjeBvBsaiwWw7NUmB1P75TNeQRGwSMNnmqdA75y7RQUqInpVj/oYy oibgf23Sm9sZ5+s47MH4epvej4EL3sgs0veCZjod4vkFuErjeXpZ203qEG2RmbmEl/cx u8L98xSl1rQoGyeBpgqSGhMLWjHH5JfsOwVTfiK9aNOfefAQZC6LRl8+9Vh5eSgDLwpB rW9/NCdJBFj857akzBaS4JrKRRNvV/hXaOJkKXkZDKdmpzFkvBC9IHTJuIH6SYRhi2+O h12Hses+jnwO+jMvTjLKEt2+i2Y8oVUg/6IjFq9oAs3x1i+EwXqoPFCmPndbttWbr6p3 CGuw== X-Gm-Message-State: APjAAAVoa1scazLPnzGVSNBKUnuPzoxm7PpACQXmK4bwtXwbQFdsTf+y NiFsN3qIlgzmLvgWhI77qMk= X-Received: by 2002:a62:fc0a:: with SMTP id e10mr1400314pfh.114.1563817652196; Mon, 22 Jul 2019 10:47:32 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.34]) by smtp.gmail.com with ESMTPSA id w3sm35130886pgl.31.2019.07.22.10.47.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jul 2019 10:47:31 -0700 (PDT) Date: Mon, 22 Jul 2019 23:17:25 +0530 From: Bharath Vedartham To: John Hubbard Cc: arnd@arndb.de, sivanich@sgi.com, gregkh@linuxfoundation.org, ira.weiny@intel.com, jglisse@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 1/3] sgi-gru: Convert put_page() to get_user_page*() Message-ID: <20190722174725.GA12278@bharath12345-Inspiron-5559> References: <1563724685-6540-1-git-send-email-linux.bhar@gmail.com> <1563724685-6540-2-git-send-email-linux.bhar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Sun, Jul 21, 2019 at 07:25:31PM -0700, John Hubbard wrote: > On 7/21/19 8:58 AM, 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(). > > > > 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: linux-kernel@vger.kernel.org > > Cc: linux-mm@kvack.org > > Signed-off-by: Bharath Vedartham > > --- > > drivers/misc/sgi-gru/grufault.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > Reviewed-by: John Hubbard Thanks! > thanks, > -- > John Hubbard > NVIDIA > > > 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; > > } > > > >