From patchwork Wed May 27 22:32:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 11574007 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2BC27912 for ; Wed, 27 May 2020 22:32:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id ED3A120899 for ; Wed, 27 May 2020 22:32:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="cwrLkk4z" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED3A120899 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nvidia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E178880010; Wed, 27 May 2020 18:32:48 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C5B00800B7; Wed, 27 May 2020 18:32:48 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A85F48001A; Wed, 27 May 2020 18:32:48 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0112.hostedemail.com [216.40.44.112]) by kanga.kvack.org (Postfix) with ESMTP id 834BD80010 for ; Wed, 27 May 2020 18:32:48 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 3ACD3181AEF09 for ; Wed, 27 May 2020 22:32:48 +0000 (UTC) X-FDA: 76863950016.21.spoon65_6fb849d730228 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id 24042180442C4 for ; Wed, 27 May 2020 22:32:48 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,jhubbard@nvidia.com,,RULES_HIT:30054:30064,0,RBL:216.228.121.143:@nvidia.com:.lbl8.mailshell.net-64.10.201.10 62.18.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:ft,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: spoon65_6fb849d730228 X-Filterd-Recvd-Size: 3249 Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Wed, 27 May 2020 22:32:47 +0000 (UTC) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 27 May 2020 15:31:16 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Wed, 27 May 2020 15:32:46 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Wed, 27 May 2020 15:32:46 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 27 May 2020 22:32:46 +0000 Received: from rnnvemgw01.nvidia.com (10.128.109.123) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 27 May 2020 22:32:45 +0000 Received: from sandstorm.nvidia.com (Not Verified[10.2.87.74]) by rnnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Wed, 27 May 2020 15:32:45 -0700 From: John Hubbard To: Andrew Morton CC: LKML , , John Hubbard Subject: [PATCH 0/2] mm/gup: introduce pin_user_pages_locked(), use it in frame_vector.c Date: Wed, 27 May 2020 15:32:41 -0700 Message-ID: <20200527223243.884385-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-NVConfidentiality: public DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1590618676; bh=3HVQJ69JpREzS+emj65oCEPFlHEr7iCFwnPdzvYkzb4=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=cwrLkk4zDYCn1Y2kahQFb/QXzCbjO/4SwmkT300jDsKrjoc4Y3f59ST/jJawachim VqGbwfn8mMCDtEucu/VghkEzX0r/v1fif6l+bXkWhQUSUOGM204Z4qCXcs4IsqMuet mmL1JNoQrUWdD5dcwUP0O40X7nzyoUszDFWEy/wNbpIwEQCIAFZjEVSU+PrLiYPLsj ZhlACmsC6x/D5krHvTYJZ3MraK6IMtymnSGR4Jmmv8N8xyZiXFLgalWFA8yWIuP+yl QYA8Byl02HYvK3kwexZPIxL9UdFPHnD9wEy0PBmwVR9IgQavoPzLi6kjpUrg5y9Tpx qiHNB/LsI/fOA== X-Rspamd-Queue-Id: 24042180442C4 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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: Hi, This applies on top of the pin_user_pages_unlocked() patch that I sent earlier [1]. This adds yet one more pin_user_pages*() variant, and uses that to convert mm/frame_vector.c. With this, along with maybe 20 or 30 other recent patches in various trees, we are close to having the relevant gup call sites converted--with the notable exception of the bio/block layer. [1] https://lore.kernel.org/r/20200518012157.1178336-2-jhubbard@nvidia.com John Hubbard (2): mm/gup: introduce pin_user_pages_locked() mm/gup: frame_vector: convert get_user_pages() --> pin_user_pages() include/linux/mm.h | 2 ++ mm/frame_vector.c | 7 +++---- mm/gup.c | 30 ++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 4 deletions(-) base-commit: 9cb1fd0efd195590b828b9b865421ad345a4a145