Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1174219ybl; Fri, 16 Aug 2019 10:05:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjZSjyquM8EIF+bG89KtsSFsJbUrjOreDXMYtVI6j1Lyt6V81B328rYiZJu4GVTKy5Ny0K X-Received: by 2002:a62:80cb:: with SMTP id j194mr12094073pfd.183.1565975130684; Fri, 16 Aug 2019 10:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565975130; cv=none; d=google.com; s=arc-20160816; b=Hlf/1e2tqYVkivU+Rx1lsG1JlnFIKkKRKoZYjVeMYwqP7YAt8CtyFePJrd+UW/Smpv l/Exi6A9rk92eoLKCd+7GATVOtoy+uNum3R9ve8st4KC2SmNTBKsq3Xh606vRC9Dhzp2 12yl7D3c0rbR9/kqxWatagA+ZOMg0V5Ys0pojepirTF2cSzGOhAObfZhGL4NXHCYh+7k Z1Hq+kBCnw6pdr1JgayhZoi3UFdtwaBFo+Lyh9Wx3qZAEo7TGMkSEHBYD+4HA1tkAwlt dE88a6L6oYtXmqaoUjL6iaaBEUZhoxmiMWZTCgGfTPOjST9NT4hKc5BvvSpbpuoM19mE 8D6A== 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:dkim-signature; bh=3/tESAZDqjf2ti4MOUFqaLyuCU2G0DdLcKzf9OCJK1A=; b=dyIMU3wxnCcCbof6NsgLSyEP+vAds8Ehp0PVifJ/6a26/Qd16yVR85p296u2k7zyPf Ud70sE/Sgx0AdCF1pp38XqDSsrWvadhjTBbljqLKJ391pOr9VX0Gr8zbDmzK9txSGrQj aKKlYQilCUjbLH4YbUu+FN2I5ifcy42NuPOyDR7BZh5BXQwmr9rzl3ggeEOTQIlDzhuh yQxiLrsYnymbp5myHHLF1KfwjFGdyZ0OQlXDA/+SBO3PM8Pm/1OJFIYNrfG+x1hC1gQG usFhhUapeZrf3QJvsHY2PRGnVXq+/H4jm41mH1evq2N+mttDOPiGY2nf0R+aEwaoleO2 emmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=CgyAwPGt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si3291903pjn.49.2019.08.16.10.05.15; Fri, 16 Aug 2019 10:05:30 -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; dkim=pass header.i=@ziepe.ca header.s=google header.b=CgyAwPGt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727543AbfHPREN (ORCPT + 99 others); Fri, 16 Aug 2019 13:04:13 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:37170 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727042AbfHPREM (ORCPT ); Fri, 16 Aug 2019 13:04:12 -0400 Received: by mail-qk1-f193.google.com with SMTP id s14so5334475qkm.4 for ; Fri, 16 Aug 2019 10:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3/tESAZDqjf2ti4MOUFqaLyuCU2G0DdLcKzf9OCJK1A=; b=CgyAwPGtGbDRUG8Q8IPdiAN946YBd9GiTLHLY9qdMO5DtczZ+v/ksZz5SGjHhHDB0g hiV6XUJ4c9P/Fox7d6UOuEz97SD/EhMDbiCw8kD+oxlGk5WZy2o/dhyrB5D8Leo7SHAD BKUA1fyEb0S2R5LJe+cV2l0+5GCV3Ei1qwVPLJVNjVyjL/1JaNhiXlUIMTcYmIQCwa5w UFybR3WyOnO6J0TyWyymvk11R0w9E51nhI3I9ejTlLJRWh894PP5rmYob/zftnr58EHa 1R9EcYM6LGmbUn/CP/1T6cgliyd8l3igSjchOMhsF9pHYkfmf7q8dp+B8ImzDvpVFHxr 0xBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3/tESAZDqjf2ti4MOUFqaLyuCU2G0DdLcKzf9OCJK1A=; b=j8GzOoUGy1iMzjtQz/TbU19RNt+x+LFo+2Xksafqmt9lDZAfg8Vz0purJj0i7x1RLN VTG0M4jBiwXCG4aq9eD4vDeH2wsuQ0tcSIpe4XTSVsOJPHdeZkauuuSmagtomMXeJ8oa lWOTWIvVZJHpUrZ66mPiTjUgq2KrKtemiOTa1rU98frzZ3LjX34Ok2iQJbJhW5/npEed Mbt4Ip7B49LoWYZ6pTNjac67ZZek+j67f0KF1zpxq7g6E+beIyZEtAqAZSnGcjiUeeSD KGgeGp5hgJKOybh+QMyCvK1x3kHCevftAeseA91byOzFl4s7fBF7WVRUPpxRIz+Lztez Fb5w== X-Gm-Message-State: APjAAAWMGsMlJEn14Wn/61zzxYY0E25uX8qXXvWaBh9yWBCGIFoHF6+7 JvMC8LJSKyZHgXv7cBHLqTtJ+A== X-Received: by 2002:a05:620a:16d6:: with SMTP id a22mr9866792qkn.414.1565975051948; Fri, 16 Aug 2019 10:04:11 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-55-100.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.55.100]) by smtp.gmail.com with ESMTPSA id s58sm3477747qth.59.2019.08.16.10.04.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Aug 2019 10:04:10 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1hyfe6-0000CI-Dj; Fri, 16 Aug 2019 14:04:10 -0300 Date: Fri, 16 Aug 2019 14:04:10 -0300 From: Jason Gunthorpe To: Jerome Glisse Cc: Jan Kara , Vlastimil Babka , John Hubbard , Ira Weiny , Andrew Morton , Christoph Hellwig , Dan Williams , Dave Chinner , 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: <20190816170410.GH5398@ziepe.ca> References: <20190814234959.GA463@iweiny-DESK2.sc.intel.com> <2cbdf599-2226-99ae-b4d5-8909a0a1eadf@nvidia.com> <20190815132622.GG14313@quack2.suse.cz> <20190815133510.GA21302@quack2.suse.cz> <0d6797d8-1e04-1ebe-80a7-3d6895fe71b0@suse.cz> <20190816154404.GF3041@quack2.suse.cz> <20190816155220.GC3149@redhat.com> <20190816161355.GL3041@quack2.suse.cz> <20190816165445.GD3149@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190816165445.GD3149@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) 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 12:54:45PM -0400, Jerome Glisse wrote: > > Yes, I understand. But the fact is that GUP calls are currently still there > > e.g. in ODP code. If you can make the code work without taking a page > > reference at all, I'm only happy :) > > Already in rdma next AFAIK so in 5.4 it will be gone :) Unfortunately no.. only a lot of patches supporting this change will be in 5.4. The notifiers are still a problem, and I need to figure out if the edge cases in hmm_range_fault are OK for ODP or not. :( This is taking a long time in part because ODP itself has all sorts of problems that make it hard to tell if the other changes are safe or not.. Lots of effort is being spent to get there though. Jason