Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2674195ybl; Mon, 19 Aug 2019 05:58:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2fvfB3WEQMj33IJ/EhWqjzqRnGwDGEVFN1r7c/8QpAf/OA5kglf6/SaaWgDbo9keaORFk X-Received: by 2002:a17:90a:e2ca:: with SMTP id fr10mr10936017pjb.72.1566219492784; Mon, 19 Aug 2019 05:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566219492; cv=none; d=google.com; s=arc-20160816; b=qq+hBqq+2WtHEM8S7aHezleTlzpzRDULk1T0rJTsBYmlrqEJXrj+ujwqJLTyz7L/Qj qaOYHdCD8BEa2LymQuECiz8hto6AZxTndPYhpth/TlqCJlhx8XibvGiHTGNS3Riahg+O 3kafuqJlzeEPYIeHuZhQDTOXk/OgccuSGWvj1AgzhDMPsO2rB49H4ezWUI2wLJHBdq29 5ybkgA4BaWNc5PddPAzE8eNdFYS9gThswcuVA0jyTDaX1uc1X9EnwsnbA+dIwi2YfrKw S79K8MR4UqC2jC7p3KSIM+TZHDJPy2lsOuMIMcXAk5wUTxXiPwFsnrtjZV+ZIzMB11cq yxgQ== 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; bh=gKH3YEhUDdrZsvSbngHymBpeC0EzahVdVyz4Ayf18jE=; b=OOamfGi1L9n2UXNYn/v/JKAaFk9npT++a/+sVseN0eCN43jD9VRmJ66Dcf4yk8QoPU 1EHqc+Oyi3yOw+LHV106tDoCATsbeRqeHfTlEhODzn6fdYCglepX3ugYY2lY4rXo+sbB H1+tQs5Bj1XsnWb/47BcV+YDKASPXiYqIkma+mEjFOW5pHtiqt+UMUnyJa1oaaII3ZDt KDdZSfYqprU4qLRmGudDfoIpnS0XJk+QW0I4DehTIDwC6Ze0KpFZi4P8q5e1RmL54ETH rXKvOf+6LUgZpHlE8In+ZhmS4qPmMZXmwwdhUfPY+CLTzRnchFarjWtmRm/3P46dZojh Wyyg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y19si9830254pll.326.2019.08.19.05.57.57; Mon, 19 Aug 2019 05:58:12 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727628AbfHSM4i (ORCPT + 99 others); Mon, 19 Aug 2019 08:56:38 -0400 Received: from mx0b-002e3701.pphosted.com ([148.163.143.35]:15920 "EHLO mx0b-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726987AbfHSM4i (ORCPT ); Mon, 19 Aug 2019 08:56:38 -0400 Received: from pps.filterd (m0150244.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x7JCu9K9030104; Mon, 19 Aug 2019 12:56:13 GMT Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0b-002e3701.pphosted.com with ESMTP id 2ufstss30v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Aug 2019 12:56:13 +0000 Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 6A1D65D; Mon, 19 Aug 2019 12:56:12 +0000 (UTC) Received: from hpe.com (teo-eag.americas.hpqcorp.net [10.33.152.10]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 824F04A; Mon, 19 Aug 2019 12:56:11 +0000 (UTC) Date: Mon, 19 Aug 2019 07:56:11 -0500 From: Dimitri Sivanich To: Bharath Vedartham Cc: sivanich@hpe.com, 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: <20190819125611.GA5808@hpe.com> References: <1566157135-9423-1-git-send-email-linux.bhar@gmail.com> <1566157135-9423-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: <1566157135-9423-2-git-send-email-linux.bhar@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-19_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908190147 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Dimitri Sivanich 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 >