Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3113421imj; Mon, 11 Feb 2019 14:13:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IZqy3ZUL4QMul0s4TcjWn0ck0uOaoON2FAATk3oHvNeNvvwQprM8SK1cncx4idQgb3sNSfE X-Received: by 2002:a63:5343:: with SMTP id t3mr414670pgl.415.1549923194616; Mon, 11 Feb 2019 14:13:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549923194; cv=none; d=google.com; s=arc-20160816; b=UnQirnjLTpz+NAGerjrMniyBjhdGmMVl5iN1KWc5TssglfpNfnftorPSU+7VSmlvYU X6TYD0ErVGjzMoMLOLjQB7PYEIK/8UuACPsllMoIlLj+NaV+r2ZJQQFqcSwC4BdXg7ad vvWsMyWoSUa6hakMpj7VeHUud6e/x5ZLoi6JY7opLWoOqmER8nXqXBAb7m/fF1P3hKkV eaGGp0T+BK7OAon7C0/PgVFgIfkyYnvw3PoQe5BHre7tJ4QelouYJ19E/cs+tD1Ftddn b7LydFq5id1Y8WuOLwd35+Oq76FROEhBN1qxt9GZIXnUVXE0q5u5ICKPPe5EiyHW+D3F vbkQ== 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=83DmjUWQh+S2vLB7v2POyWHbLsByc2zkoGWWNU6YAPM=; b=02VudnwdSwhyFPy90dCLdw0Rxj8UpBvsDyggwLSO6CkE8gyRbMOfxHsjQvjc/Z8RGZ 2dUEBkM9OBNjBTOBiJXjeFIprWFATr/wzqL9KcXMoC3E8hPumKtjbSHZPGlkkZPRRhkt TPdTmsNVYuEhulC4izHplEoWaSEpDu46cKfyYVQXxlfTOlRvoxcsjWI2VCrN7xtq4h6p Ss3ypsKF2ZeEbqpjOi4Nu8vKqom2B3tdjIayvRAu0otlJFxZ7sG0ihH+17a6VQDFOTG9 Txz4qFEeEe6LagCxwSTLHw+mUDVK8Mj28An+GxffN5/SWfTwG9MYFzN9KTal5BKbs+Wi BDTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=gB0ndMav; 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 31si11500249plz.263.2019.02.11.14.12.57; Mon, 11 Feb 2019 14:13:14 -0800 (PST) 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=gB0ndMav; 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 S1726969AbfBKWMu (ORCPT + 99 others); Mon, 11 Feb 2019 17:12:50 -0500 Received: from mail-pf1-f174.google.com ([209.85.210.174]:42246 "EHLO mail-pf1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbfBKWMt (ORCPT ); Mon, 11 Feb 2019 17:12:49 -0500 Received: by mail-pf1-f174.google.com with SMTP id n74so212372pfi.9 for ; Mon, 11 Feb 2019 14:12:49 -0800 (PST) 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=83DmjUWQh+S2vLB7v2POyWHbLsByc2zkoGWWNU6YAPM=; b=gB0ndMavIkmtshRqaMuUYA0IV/ApBgqnYbPjyksRq1BBJjKyeq3LdC/xG1McWcTeQX nrlUPXmoL33R57gJEqBcQ4NdMD34w4y3m0yMDrQGlSDTfgbKsfOmEqMasbZ+GUNniIGP iPHtdLQYITnYXmpZcYXwRjZHui/AFax+dob2kX9rjeHUXFLz6ZXwBcUQO/4e5aDvyKV0 LwgEtSKK0gNgz29rEg+wZWEfCWyQJznN1+yRyy9VQ/zcmEefHlbtKLk1W98S+MCgHIAS dIvqSYf9XtGOoU5AasRE9cVN+saFPAc8XtMbQ8iNWY8Xe9lZj6ekrIQf/wSl1hBOx1YO 0iNw== 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=83DmjUWQh+S2vLB7v2POyWHbLsByc2zkoGWWNU6YAPM=; b=nBTLajKuQtL19bXXEqRkBFjnlLw0hS5j+OvKpU7mZFZduxI3irbjE7ZkBut51XU8v8 FD5i88Fr3pdVxabqxvZQwjuxJ8Cdzj2dPE8eaBF7e9RcQ3TNKQL1lIqlLb9CdzWZngOy KBBVgaZEFnh453NAa0l8mXhRotMRlORpZifdkesmBzw6VWibHNpp8RsPO8kD/tdgTnka cZt7S1QUYWZWjS9EZjZewECusqLXSdC+ZnRwgvTomIPHa3JU4FF2PE7WSwm4n3Rurort t3lTvUIJwWBgL/BBeyjYrEfX+ei8RgDzFhca6AMS2rkO1ZGNJFGDTSLWvy4LZMGdC0/S yukQ== X-Gm-Message-State: AHQUAuY8mEn/qiBxtbVbijsuEkNkDOh5CKBcTdDnv2IXKFKDIdD8b74L ulIXh7zD7wr6Mp7DbqoVd2S//w== X-Received: by 2002:a63:1544:: with SMTP id 4mr475924pgv.290.1549923169126; Mon, 11 Feb 2019 14:12:49 -0800 (PST) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id m67sm19284132pfb.25.2019.02.11.14.12.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Feb 2019 14:12:48 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1gtJol-0003Sa-Rp; Mon, 11 Feb 2019 15:12:47 -0700 Date: Mon, 11 Feb 2019 15:12:47 -0700 From: Jason Gunthorpe To: John Hubbard Cc: Ira Weiny , Dan Williams , Jan Kara , Dave Chinner , Christopher Lameter , Doug Ledford , Matthew Wilcox , lsf-pc@lists.linux-foundation.org, linux-rdma , Linux MM , Linux Kernel Mailing List , Jerome Glisse , Michal Hocko Subject: Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA Message-ID: <20190211221247.GI24692@ziepe.ca> References: <01000168c8e2de6b-9ab820ed-38ad-469c-b210-60fcff8ea81c-000000@email.amazonses.com> <20190208044302.GA20493@dastard> <20190208111028.GD6353@quack2.suse.cz> <20190211102402.GF19029@quack2.suse.cz> <20190211180654.GB24692@ziepe.ca> <20190211181921.GA5526@iweiny-DESK2.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Feb 11, 2019 at 01:22:11PM -0800, John Hubbard wrote: > The only way that breaks is if longterm pins imply an irreversible action, such > as blocking and waiting in a way that you can't back out of or get interrupted > out of. And the design doesn't seem to be going in that direction, right? RDMA, vfio, etc will always have 'long term' pins that are irreversible on demand. It is part of the HW capability. I think the flag is badly named, it is really more of a GUP_LOCK_PHYSICAL_ADDRESSES flag. ie indicate to the FS that is should not attempt to remap physical memory addresses backing this VMA. If the FS can't do that it must fail. Short term GUP doesn't need that kind of lock. Jason