Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp59460ybg; Sun, 31 May 2020 16:47:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIemdZ2XKMFKCpu77D+quCrINDjrCagjI7BCApFiDfqvwOEU3KxSQLoRCi0k8cnsnwzQub X-Received: by 2002:a17:906:528b:: with SMTP id c11mr4535288ejm.407.1590968849657; Sun, 31 May 2020 16:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590968849; cv=none; d=google.com; s=arc-20160816; b=Q+0zKX5qJtmWhJ1m+Uss/SgmefSmaW5GtGUIfghK04Cfw7T+yCBWHDoMd8I6B7rrgi TUxFmb9knQWAhUrMRLfaXqtYnTyPizExxKHnVA+MHm4I/+QpG0v98Kd1e3qdankg1+fC 2Ao3ZI+BsHmoN8YFrAexsPO2wotUZDnccGYRxQTp7aL0IfkmMZHEhipYDn3ZZWHY5Ts7 yy9TBP8+Yui0r+qwn5tiRTF6V+j1Xjbmfu7KIP+DRl0PUqb65O8//BiJckvL7J5sJGO/ ZUmNhz5XcychRa0rniLiQQlgAmVwUJjrWq9YZuLawz4Gc5ZpIWUumaPz5/TY0ZKqb8xA 1xBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=otv8+odmL4zqFWhReTZfBsIuJx61Pus8PEKMQhr3NGQ=; b=qLClW/OvB0YfLDcVz6j7B9sF/bb8o1zzT+r9lUSdRNAbHBlonziCKbfY6PDLjAjjub BO45ZQq1bqaDazPoG5AUDdpJ+YRhnVPJz/1kKT1UmxqVc83Gh7ykBn3wa1WCyrnhyfop C6TNTJdVSFtj9y+SWH4d/M7uUnHBq1P9UnOsO9fuN/Aq0huMNb0/4o+yF6b8wqwV2gdH MNmO/lESqThoAJsy/jedFlS3K+pud7RTeFG9pE5wgBZ8Vit3P+FuOv4Cmmq+rFQNIuY4 v27RiLrAS9DInxtGHrj7LtRNdsmGDXRQNacvp6lwYoBPmNSgkVVSTyGmAMyBcPMBDMYX FgcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=qvcNTrea; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m15si3670216eje.453.2020.05.31.16.47.07; Sun, 31 May 2020 16:47:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=qvcNTrea; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728359AbgEaXld (ORCPT + 99 others); Sun, 31 May 2020 19:41:33 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:18543 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbgEaXlc (ORCPT ); Sun, 31 May 2020 19:41:32 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 31 May 2020 16:40:06 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Sun, 31 May 2020 16:41:32 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Sun, 31 May 2020 16:41:32 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 31 May 2020 23:41:32 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 31 May 2020 23:41:32 +0000 Received: from sandstorm.nvidia.com (Not Verified[10.2.56.10]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Sun, 31 May 2020 16:41:32 -0700 From: John Hubbard To: Andrew Morton CC: David Hildenbrand , Pankaj Gupta , Souptick Joarder , LKML , , John Hubbard Subject: [PATCH v2 0/2] mm/gup: introduce pin_user_pages_locked(), use it in frame_vector.c Date: Sun, 31 May 2020 16:41:29 -0700 Message-ID: <20200531234131.770697-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1590968406; bh=otv8+odmL4zqFWhReTZfBsIuJx61Pus8PEKMQhr3NGQ=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=qvcNTreaeJlaPtVQX+5z+UEvX4qGJRgm04x9GbLMVMPdT1+zsY8ZVjMH4nW40Qynw 1meQhyZcd4kLqSzjBprxutBiRZT7QyGL8X9i/rtyNzrRQf22rphaT+/lu87S7dI+bZ z8LrnUHmzVRwfs4V5Kat6F57ZuEEznY+mUt2oY3JUg4rjbjA614/u83TLUp+WykQCi oTddrOJ7zljI5IOehDP5N3g97qyEf9O0WHr2l4MqOcM8UsbXo+/zFSNhKv3aQDQvDa s2xdCzezH0KrSmZgd58NTBv1MKzxYeRk+t8VGFe4yrTL4T3OAPfFa9LySs9AxVunt9 gdSq7h5vVGKwQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Changes since v1: * added an assert-and-return to the corresponding get_user_pages_locked() call, to keep out any externally set FOLL_PIN flag, thanks to Souptick Joarder's review for spotting that. * Added Acked-by and Reviewed by tags from David and Pakaj 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 | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 4 deletions(-) base-commit: bdc48fa11e46f867ea4d75fa59ee87a7f48be144 --=20 2.26.2