From patchwork Wed Aug 21 04:07:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 11105415 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 8437D14DE for ; Wed, 21 Aug 2019 04:07:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 63BE22332A for ; Wed, 21 Aug 2019 04:07:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="XA6UfrA6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727491AbfHUEHf (ORCPT ); Wed, 21 Aug 2019 00:07:35 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:17881 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbfHUEHe (ORCPT ); Wed, 21 Aug 2019 00:07:34 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 20 Aug 2019 21:07:34 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Tue, 20 Aug 2019 21:07:33 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Tue, 20 Aug 2019 21:07:33 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 21 Aug 2019 04:07:33 +0000 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 21 Aug 2019 04:07:33 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 21 Aug 2019 04:07:33 +0000 Received: from blueforge.nvidia.com (Not Verified[10.110.48.28]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Tue, 20 Aug 2019 21:07:33 -0700 From: John Hubbard To: Andrew Morton CC: Christoph Hellwig , Dan Williams , Dave Chinner , Ira Weiny , Jan Kara , Jason Gunthorpe , =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , Vlastimil Babka , LKML , , , , John Hubbard Subject: [PATCH v2 0/3] mm/gup: introduce vaddr_pin_pages_remote(), FOLL_PIN Date: Tue, 20 Aug 2019 21:07:24 -0700 Message-ID: <20190821040727.19650-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.22.1 MIME-Version: 1.0 X-NVConfidentiality: public DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1566360454; bh=uyVhqp7Iikhfj8344qx1VFzWIkbM3pJSNZmFd7x5l5o=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=XA6UfrA6lFoTPSUjqbFZI3a7dNJUvP4CdrK9ripJXyx9Yo5DzDH2Ay5MuUMu/41bO UqbpMDmfE8WaZzqd0s7Rmu0ypulWp9E5jo4whaTYp4kzsjysPkDaHu0dv4wCZ/5MJW U+eZCd4rdUDs5YiwGb7sXgpjJaMxf0qLGrM6Ozaeqi+IyQpB+McIltnVdPR0/C7YtD GJh1pCKjVIyNwAnCzbFs8/Tt8eeP8K2SkobKCy4zpcxotj/8Gycw3s+Kkl4bqHwvu/ n8G6roBAp/PtxA5N5rNvRJRl7nhZhRRCDjFON1+QnBJz0Jrf9EhKrx0nbzM81maDvz w3/7lG5eZmwAg== Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Hi Ira, This is for your tree. I'm dropping the RFC because this aspect is starting to firm up pretty well. I've moved FOLL_PIN inside the vaddr_pin_*() routines, and moved FOLL_LONGTERM outside, based on our recent discussions. This is documented pretty well within the patches. Note that there are a lot of references in comments and commit logs, to vaddr_pin_pages(). We'll want to catch all of those if we rename that. I am pushing pretty hard to rename it to vaddr_pin_user_pages(). v1 of this may be found here: https://lore.kernel.org/r/20190812015044.26176-1-jhubbard@nvidia.com John Hubbard (3): For Ira: tiny formatting tweak to kerneldoc mm/gup: introduce FOLL_PIN flag for get_user_pages() mm/gup: introduce vaddr_pin_pages_remote(), and invoke it drivers/infiniband/core/umem.c | 1 + include/linux/mm.h | 61 ++++++++++++++++++++++++++++++---- mm/gup.c | 40 ++++++++++++++++++++-- mm/process_vm_access.c | 23 +++++++------ 4 files changed, 106 insertions(+), 19 deletions(-)