Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1257662ybl; Fri, 16 Aug 2019 11:34:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVx2ZLrTL+W+3Ia7nrRAGh4XnHSl33c2MaLJ05xmzuTOWtfLKMMAWZzZw3UfYfol0IUF/3 X-Received: by 2002:a17:90a:a789:: with SMTP id f9mr8603861pjq.19.1565980468319; Fri, 16 Aug 2019 11:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565980468; cv=none; d=google.com; s=arc-20160816; b=0PlzTsVwxBGKk6SUyq7e4JPZ9NOe1SXh+OwwQH5yp75x0F+sRPe1Jx6TOaCcS+dSLe 4x9M/fd+70CyywEmv7w3P+xoxhp/zD9rnJBPMhzvUhCZlbg+3czo5sserLcbgM9t2xCy Nyxtewo4gqm2iAtAIXsKIEE9/7nDIt2l1+cz3nVA7kfsytMWn6cCpGhdL6iWONnuI4Cv e9aoHcd7SWlNGSU+MTNfUIHUXDKSmGuok9X5sU/DfKjuYqLYtvjhbW8CsTLh+jx/S5Kg sAyq66Fbd47+h/EVLQ8uLFBznuJaFwUaKM1StDTJZTA9b472hh8z95i9c/fs4BvOm1rS BWNw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=LrGZf0szVsnagB+AKQ6lvoQt/T2Vmo7rnvLbfk9ja9M=; b=vfVyCj0RuLP7q/3aQotARBSoCbVL75IG/PDsMC3rP8hrZmOyHTGNzYTRaHWX86ClRV q/8KKw9kVVlwFZUitf2bHM1rH2LKvej+07Ed+WX4MuNTwxVE+UsbgTB633G/4l9qT0c+ RnQpxiNWSb6Qd/QlgXhQt0ygmEYGxh5paW2XgeN8lY1mxHSKMxNhABP92PkGx958qGPi on81FW9iFXXFAYEhthM3WTzjWV4dmLBOrw8W0CGGqB87zV3JVACgSr52DctNNUIPrw+E 6vD5/YjrxHE32rhyelI/VmKcT27K/6DwpbpzMkfnV8COEh78elBGoVVgwOuSwZ/hL0q9 NvHA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f25si4828577pfd.157.2019.08.16.11.34.12; Fri, 16 Aug 2019 11:34:28 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727565AbfHPSdl (ORCPT + 99 others); Fri, 16 Aug 2019 14:33:41 -0400 Received: from mga07.intel.com ([134.134.136.100]:4860 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727381AbfHPSdk (ORCPT ); Fri, 16 Aug 2019 14:33:40 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Aug 2019 11:33:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,394,1559545200"; d="scan'208";a="261183726" Received: from iweiny-desk2.sc.intel.com ([10.3.52.157]) by orsmga001.jf.intel.com with ESMTP; 16 Aug 2019 11:33:38 -0700 Date: Fri, 16 Aug 2019 11:33:38 -0700 From: Ira Weiny To: Jan Kara Cc: John Hubbard , Andrew Morton , Christoph Hellwig , Dan Williams , Dave Chinner , Jason Gunthorpe , =?iso-8859-1?B?Suly9G1l?= Glisse , LKML , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-rdma@vger.kernel.org Subject: Re: [RFC PATCH 2/2] mm/gup: introduce vaddr_pin_pages_remote() Message-ID: <20190816183337.GA371@iweiny-DESK2.sc.intel.com> References: <90e5cd11-fb34-6913-351b-a5cc6e24d85d@nvidia.com> <20190814234959.GA463@iweiny-DESK2.sc.intel.com> <2cbdf599-2226-99ae-b4d5-8909a0a1eadf@nvidia.com> <20190815132622.GG14313@quack2.suse.cz> <20190815133510.GA21302@quack2.suse.cz> <20190815173237.GA30924@iweiny-DESK2.sc.intel.com> <58b75fa9-1272-b683-cb9f-722cc316bf8f@nvidia.com> <20190816154108.GE3041@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190816154108.GE3041@quack2.suse.cz> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 16, 2019 at 05:41:08PM +0200, Jan Kara wrote: > On Thu 15-08-19 19:14:08, John Hubbard wrote: > > On 8/15/19 10:41 AM, John Hubbard wrote: > > > On 8/15/19 10:32 AM, Ira Weiny wrote: > > >> On Thu, Aug 15, 2019 at 03:35:10PM +0200, Jan Kara wrote: > > >>> On Thu 15-08-19 15:26:22, Jan Kara wrote: > > >>>> On Wed 14-08-19 20:01:07, John Hubbard wrote: > > >>>>> On 8/14/19 5:02 PM, John Hubbard wrote: > > ... > > >> Ok just to make this clear I threw up my current tree with your patches here: > > >> > > >> https://github.com/weiny2/linux-kernel/commits/mmotm-rdmafsdax-b0-v4 > > >> > > >> I'm talking about dropping the final patch: > > >> 05fd2d3afa6b rdma/umem_odp: Use vaddr_pin_pages_remote() in ODP > > >> > > >> The other 2 can stay. I split out the *_remote() call. We don't have a user > > >> but I'll keep it around for a bit. > > >> > > >> This tree is still WIP as I work through all the comments. So I've not changed > > >> names or variable types etc... Just wanted to settle this. > > >> > > > > > > Right. And now that ODP is not a user, I'll take a quick look through my other > > > call site conversions and see if I can find an easy one, to include here as > > > the first user of vaddr_pin_pages_remote(). I'll send it your way if that > > > works out. > > > > > > > OK, there was only process_vm_access.c, plus (sort of) Bharath's sgi-gru > > patch, maybe eventually [1]. But looking at process_vm_access.c, I think > > it is one of the patches that is no longer applicable, and I can just > > drop it entirely...I'd welcome a second opinion on that... > > I don't think you can drop the patch. process_vm_rw_pages() clearly touches > page contents and does not synchronize with page_mkclean(). So it is case > 1) and needs FOLL_PIN semantics. John could you send a formal patch using vaddr_pin* and I'll add it to the tree? Ira > > Honza > -- > Jan Kara > SUSE Labs, CR >