Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3031654imj; Mon, 11 Feb 2019 12:37:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IZW/t9a7F3m+4MgUjHkko2Wc5P4obRyBM7Cgevgr4Ymj+2sLhYxkyMTV9LWFfjgpozpVEhP X-Received: by 2002:a63:1616:: with SMTP id w22mr104826pgl.200.1549917449368; Mon, 11 Feb 2019 12:37:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549917449; cv=none; d=google.com; s=arc-20160816; b=Qz9Ab2WJN3rSf/k4hmwIG6cbtGW2fNzTavUHcsD0AmtGNZy5BdxzPv7I3EbB0O/gkB uOdWHNoY7+Md48CrFbLZ1JQ/TXA95kTNepcobee7HabV0BnODZBxs8FhZ0BLCv+AGXSb CM323vKbE8857DnfnpgS4p7xr53AbpllE055EMfLw9DYpQ+z4il4WWH0HBYC4SamMNvd 1n9WwIHn5ABOqKGbTdUE/DHGVM6oOvTLxqwMHbOVhkiGMU51eODHVfBTcrqiqssFp+Np 90OMeirkKV3JtUYYlNRHQdSOCM0+aYrGswDKv8dKnY81g77QU27VPQHqr3+6FcMPp823 y9ZA== 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=w0y9hW+FfwZmqRbEGDUn/tatRO/LwdPvsfhlv3Glf8s=; b=NuQBp5USOV9tH63iA+nfbMWEt+WMPT4FRKlXoZNDa/SWM0J7BovdpJCsco9ToONuDu kQ0C8x7HCMZU4n10vP3fy21j8aogThVNBGxDEBJxFWXWKP7v/PEiAO3l+JqtsObqswdy tw4cMhO8ndB9pQzXmMvU0VSJ2q9uE937GwfZiQoaL35Vj+dpA3I/JkU89mxSaVWvB2Lr oCtQ4+WOfHoGz6BtO93pyfOi4IOkENwpjFVaRbKlw6M16svQpzbIgZ2YnPYBiLLK063i Gw7IFXksSnVslMQ4Ae96379yMsiiHvip2TpkSf/o5abb5CI8q+h80RonsOy/QheriGf9 8khg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=E+H12NWq; 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 n2si9593261pgp.30.2019.02.11.12.37.13; Mon, 11 Feb 2019 12:37:29 -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=E+H12NWq; 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 S1727914AbfBKSG6 (ORCPT + 99 others); Mon, 11 Feb 2019 13:06:58 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46722 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbfBKSG5 (ORCPT ); Mon, 11 Feb 2019 13:06:57 -0500 Received: by mail-pg1-f195.google.com with SMTP id w7so5277259pgp.13 for ; Mon, 11 Feb 2019 10:06:57 -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=w0y9hW+FfwZmqRbEGDUn/tatRO/LwdPvsfhlv3Glf8s=; b=E+H12NWqOH1kocgLBJFfdyfUTGtO82CGQL/Q5abd40O4IhGdaqRBFiSCmc8bOl2JEq wxji4EQNCE0kjaQDY58Pr8AW0elv7SDRpJjmnPhtSKWmRdld9oOKPYdMp8cbXgtihTkN YpvY7172JPcd5+1Lr9i4nZ3vf7k3qSYDtPP45P0RbHthJysr6EMBaIa1vOnqFzQmAGIw lV90ylsROmy8J6nqSihqEou9kzzxl1X/Rl52pKQxPd+e6XJUuM371VUuxLXRcZDDJ5Zr 9Bb2FEcJHJDnRVloNx7ntigxbFa0dg5+evw5ZRVt3HY4E02wLO1DDSnQhyTTuACCjnJG brwA== 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=w0y9hW+FfwZmqRbEGDUn/tatRO/LwdPvsfhlv3Glf8s=; b=f230MkzOWu/SJDHo3CsTuhlvOGAT6+XOoyLfMOJuyhnZIgH8UxDjC1Ac6reJFV04Qy STNYsAqJx+pPnIWDq5Msuo4fzR8Pi8OUzbt0WSpLuDwBOuxeD4h6nZemG3MZL711tP4g kbh5wE558N1xDy8gjPuGfU15mnytWJ4N7zYdjSIct2ypR7N2276UrF0rGyHQjyBawRes 5VTxcrt8oikWhokYRNELQ0CCapahsrqCrONA+8EByeXcsBim9uoK34UdNiKFe8K7LjIq TNIOZg53e3bsqV14fevSxhYg8sCZpXj4qoda86vnfMfkd+ph8VdnabzHXUmXty6IQGIg EjzQ== X-Gm-Message-State: AHQUAuYN/F1iDpCx3A3f6XaH6ooe0MU6pypk10c8vSKnjGcq4Ynx05Ds 3PludqLPrMXANVeBctydzc32IA== X-Received: by 2002:a63:d70e:: with SMTP id d14mr34732488pgg.159.1549908416674; Mon, 11 Feb 2019 10:06:56 -0800 (PST) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id a187sm9735052pfb.61.2019.02.11.10.06.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Feb 2019 10:06:55 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1gtFyo-0007co-W4; Mon, 11 Feb 2019 11:06:55 -0700 Date: Mon, 11 Feb 2019 11:06:54 -0700 From: Jason Gunthorpe To: Dan Williams Cc: Jan Kara , Dave Chinner , Christopher Lameter , Doug Ledford , Matthew Wilcox , Ira Weiny , lsf-pc@lists.linux-foundation.org, linux-rdma , Linux MM , Linux Kernel Mailing List , John Hubbard , Jerome Glisse , Michal Hocko Subject: Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA Message-ID: <20190211180654.GB24692@ziepe.ca> References: <20190206220828.GJ12227@ziepe.ca> <0c868bc615a60c44d618fb0183fcbe0c418c7c83.camel@redhat.com> <01000168c8e2de6b-9ab820ed-38ad-469c-b210-60fcff8ea81c-000000@email.amazonses.com> <20190208044302.GA20493@dastard> <20190208111028.GD6353@quack2.suse.cz> <20190211102402.GF19029@quack2.suse.cz> 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 09:22:58AM -0800, Dan Williams wrote: > I honestly don't like the idea that random subsystems can pin down > file blocks as a side effect of gup on the result of mmap. Recall that > it's not just RDMA that wants this guarantee. It seems safer to have > the file be in an explicit block-allocation-immutable-mode so that the > fallocate man page can describe this error case. Otherwise how would > you describe the scenarios under which FALLOC_FL_PUNCH_HOLE fails? I rather liked CL's version of this - ftruncate/etc is simply racing with a parallel pwrite - and it doesn't fail. But it also doesnt' trucate/create a hole. Another thread wrote to it right away and the 'hole' was essentially instantly reallocated. This is an inherent, pre-existing, race in the ftrucate/etc APIs. Jason