Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4205915imm; Mon, 18 Jun 2018 10:52:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIAjvW9Vekti+mOz40fYvd6RDFFsHDEVCQ54mFV8p/09IXrECuFzCBrh8oCa8Z2p4gdUspW X-Received: by 2002:a65:5cc8:: with SMTP id b8-v6mr11882973pgt.85.1529344342376; Mon, 18 Jun 2018 10:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529344342; cv=none; d=google.com; s=arc-20160816; b=LN1eMhVWRqOrxVuQxSglQwoYqFFnuPHPJ9ioofTW7QfHZcN85ntfvwIbMdeciJ4D4n tNtQnEeveZ/ftU734w9c2udnwe0MVZVwr/L6QIPAbCOB6P+4/6HOtUeslz3bCJhXl3/u 9LLoJurO9N5ybi+rT9hmgtkKy+7SdWRzra1fTcj3sPtEO+lYu0TOvslKby3mheDW9NV/ /7+PJh2FhNJf1ZVFX3q7uAv42PmKhM62GYM6rqyQcn9y//ojy7hFrxf4prC7hP+a1LcU GWiRambFBORFqp+6OOFClhdHsWjubwXHnMEOqokxXoFIHjiwEQZl1k7aRNi97/B/9Gq0 WwVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=VsVhyRnekskK+o5NeUyg+6iIxfEp5zrkUrWwgmdCgeQ=; b=ryRDTQl/U5UEpTRd+duElGpMuIwfMvzwJ3jhjdIDoA67ReOjKMqhWAKcDFVLRhpIZ9 kp+8sBqSs9A0rtHGzrYr0br2exHQRmQeS9YKlWg7hH5/h65Yuae0pxAb7YW3oebbAZxD AWHUoMfE7LT7rHBsaMZxecz/IfyupfTZoVAPjpStUMD0jl0jcyUYLdxdMjpPeT6waJd3 j2k4y3lJlfs7JQ3Df4uYFyMq+yLnks0OgItu48sFJDhevZ52NGUKWegIg3TgEv8QVQGe Py74zBpEwtFWq0MBCFIHTTv1fdt+0BfS0m/wOiuiCWIGpW/V7pboZFQL7f6TZRSXGs/Y ETTQ== 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7-v6si12507057pgf.317.2018.06.18.10.52.08; Mon, 18 Jun 2018 10:52:22 -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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964855AbeFRRvW (ORCPT + 99 others); Mon, 18 Jun 2018 13:51:22 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:3760 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934963AbeFRRvU (ORCPT ); Mon, 18 Jun 2018 13:51:20 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1, AES128-SHA) id ; Mon, 18 Jun 2018 10:51:22 -0700 Received: from HQMAIL107.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 18 Jun 2018 10:51:20 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 18 Jun 2018 10:51:20 -0700 Received: from [10.2.175.123] (10.2.175.123) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 18 Jun 2018 17:51:18 +0000 Subject: Re: [PATCH 2/2] mm: set PG_dma_pinned on get_user_pages*() To: Christoph Hellwig CC: Dan Williams , Jason Gunthorpe , , Matthew Wilcox , Michal Hocko , Christopher Lameter , Jan Kara , Linux MM , LKML , linux-rdma References: <20180617012510.20139-1-jhubbard@nvidia.com> <20180617012510.20139-3-jhubbard@nvidia.com> <20180617200432.krw36wrcwidb25cj@ziepe.ca> <311eba48-60f1-b6cc-d001-5cc3ed4d76a9@nvidia.com> <20180618081258.GB16991@lst.de> X-Nvconfidentiality: public From: John Hubbard Message-ID: Date: Mon, 18 Jun 2018 10:50:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180618081258.GB16991@lst.de> X-Originating-IP: [10.2.175.123] X-ClientProxiedBy: HQMAIL102.nvidia.com (172.18.146.10) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/18/2018 01:12 AM, Christoph Hellwig wrote: > On Sun, Jun 17, 2018 at 01:28:18PM -0700, John Hubbard wrote: >> Yes. However, my thinking was: get_user_pages() can become a way to indicate that >> these pages are going to be treated specially. In particular, the caller >> does not really want or need to support certain file operations, while the >> page is flagged this way. >> >> If necessary, we could add a new API call. > > That API call is called get_user_pages_longterm. OK...I had the impression that this was just semi-temporary API for dax, but given that it's an exported symbol, I guess it really is here to stay. Anyway, are you thinking that we could set the new page flag here? Or just pointing out that the other get_user_pages* variants are the wrong place?