Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp809451ybn; Wed, 2 Oct 2019 06:34:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlzixVezR2yeg6HDmAHCX+HRMuU0C26V3vOqD9zx0G1+nceLHuh8pvgX6TPn1p6djMno+k X-Received: by 2002:a17:906:82c1:: with SMTP id a1mr3120299ejy.187.1570023293133; Wed, 02 Oct 2019 06:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570023293; cv=none; d=google.com; s=arc-20160816; b=ANivpPiMY6STiouZ8+4mVdjJ9wkT6oLN5GFh8fZjuHKcNcpRnZMdl4NV5Bkt54CrEx HX4BNszukL+J2nHSwWRBNcnAmRkuZW9RYQ497Rau8ddzbKfhnQ3V5/XBtE29WceitJPX y1XcBnPArRfyLBIRea10tYONP2ra+XZEkyjwbxABUu+q8sjt6nZtEHDm3VSdihLVnAi9 uKnTK/gpSlSCm5pTI3F6Pj3Xxt/uMEi8uSKQHKLS8JJ3Y2XXjN1WKeKeMY847W050NmU +eRyJVCtFpqQQvo0MgJCjJPkFeZsO9GiK9b4A8ZwNCYauJ934or8uP2puIlYTjSC98tB W2lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=50mE1GFOx2IDL8fOUBOO94SxADHosM9SfQ7pyxbnHTg=; b=vmzzE6xVJy7/EtZZoqsuOu0QSK9hMOKINvce4+vSz1xXU7Mq3j6ZhtRvGPojuLH75E XV5ezQO/SzggiqbsISnx03Z3flCqbLowPNydg/yCuOW/q1VFYcD5F4ZkE52i3Pv3mohE xVsoMb0xuT4tzc56thgdZqTpfmgTfvGqGGm/LtDJ0YZNYN2kYr4ibPM5JoJEoyij2L0l ggub0qwPZ5QTo1AgHIsTzTo8BzowCQkCmaKo03991OLxvVs8o1cI5AwTxOFqgMFItXxI IJhtJJBfiQbNJCkTrnT4Gla49z4C3ldUpCFFH8og6xEXu8LUSi1m7b2Q5CMDO800OIf6 UW+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=OcATdm0f; 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 fk4si11434263ejb.161.2019.10.02.06.34.28; Wed, 02 Oct 2019 06:34:53 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=OcATdm0f; 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 S1727350AbfJBNHk (ORCPT + 99 others); Wed, 2 Oct 2019 09:07:40 -0400 Received: from mail-oi1-f174.google.com ([209.85.167.174]:36060 "EHLO mail-oi1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbfJBNHk (ORCPT ); Wed, 2 Oct 2019 09:07:40 -0400 Received: by mail-oi1-f174.google.com with SMTP id k20so17574646oih.3 for ; Wed, 02 Oct 2019 06:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=50mE1GFOx2IDL8fOUBOO94SxADHosM9SfQ7pyxbnHTg=; b=OcATdm0fU0HGv1IIhubCuFeqR/P2N37o7xtR/ZD4irFYeHZyY/QMlcxb9A3jVo1gr4 chbxvSvR7VV0Qigg5Ap4In4xkHjYBGjW81DG45OK+R+st0eaUOvKFdRsNtBGfdXXso+G CRT9yAg3GyQINBZ5KBDazaDUYmqZ9vColyWrmK7zf2b7qw3LLSuXB22GA91dRzkb/DN3 hVBuovDyfmx09Yu6vWFC0lVHAXaZdX+8e6xTLeBTs8iVaP9DmUzHXZJ5SuCoYXwZ14L3 3WdQyTtyBcH2b1o1IoJ8dDqWwniK/IYku412BJ6lj3HdaGvf3lcdbJk/pu8WTervpUsH BKcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=50mE1GFOx2IDL8fOUBOO94SxADHosM9SfQ7pyxbnHTg=; b=NZeUImhhGGxpP2D3HH2Af6CanQA7JKlaC9zPDgFarImh73yxfCw3ORwtImKFsXC/y4 MYEWU9AYRRJ385WWx9qhCR1D/Xj1Mzv8bUw21EdJbt2/McQZoO7ja+z7bXdjUu72Lcrt uy708s0GfBDt7Pg9F87RRRkmeJV+nUELYilP5tvIRQspsbkDlM6vk2gJD0B5HY+69jmJ KtGsCMKrCXRpZhBpztqSx05r3UEs3/SfzV0Da+e8/NWXeVA8D89uB3rO3zlmg2ks15ay Nik4i4rQvfKsSaN2XhFATMLf++e5y0xr/yKucoR/FVoM8DPxVOYgNmU8IMT31dZ99foe i/dw== X-Gm-Message-State: APjAAAUv9bY6NYUtsaKpvaWezec7RNZ2gCst7SDvINyX94eVNlgOK5PV 6PvFRPKR1B8XzAAxhsBGSheT8iGyhOHwM44qJ1CIKQ== X-Received: by 2002:aca:eb09:: with SMTP id j9mr2925590oih.105.1570021659582; Wed, 02 Oct 2019 06:07:39 -0700 (PDT) MIME-Version: 1.0 References: <20190923190853.GA3781@iweiny-DESK2.sc.intel.com> <20190923222620.GC16973@dread.disaster.area> <20190925234602.GB12748@iweiny-DESK2.sc.intel.com> <20190930084233.GO16973@dread.disaster.area> <20191001210156.GB5500@iweiny-DESK2.sc.intel.com> In-Reply-To: <20191001210156.GB5500@iweiny-DESK2.sc.intel.com> From: Dan Williams Date: Wed, 2 Oct 2019 06:07:27 -0700 Message-ID: Subject: Re: Lease semantic proposal To: Ira Weiny Cc: Dave Chinner , linux-fsdevel , linux-xfs , linux-ext4 , linux-rdma , Linux Kernel Mailing List , linux-nvdimm , Linux MM , Jeff Layton , Jan Kara , "Theodore Ts'o" , John Hubbard , Jason Gunthorpe , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 1, 2019 at 2:02 PM Ira Weiny wrote: > > On Mon, Sep 30, 2019 at 06:42:33PM +1000, Dave Chinner wrote: > > On Wed, Sep 25, 2019 at 04:46:03PM -0700, Ira Weiny wrote: > > > On Tue, Sep 24, 2019 at 08:26:20AM +1000, Dave Chinner wrote: > > > > Hence, AFIACT, the above definition of a F_RDLCK|F_LAYOUT lease > > > > doesn't appear to be compatible with the semantics required by > > > > existing users of layout leases. > > > > > > I disagree. Other than the addition of F_UNBREAK, I think this is consistent > > > with what is currently implemented. Also, by exporting all this to user space > > > we can now write tests for it independent of the RDMA pinning. > > > > The current usage of F_RDLCK | F_LAYOUT by the pNFS code allows > > layout changes to occur to the file while the layout lease is held. > > This was not my understanding. I think you guys are talking past each other. F_RDLCK | F_LAYOUT can be broken to allow writes to the file / layout. The new unbreakable case would require explicit SIGKILL as "revocation method of last resort", but that's the new incremental extension being proposed. No changes to the current behavior of F_RDLCK | F_LAYOUT. Dave, the question at hand is whether this new layout lease mode being proposed is going to respond to BREAK_WRITE, or just BREAK_UNMAP. It seems longterm page pinning conflicts really only care about BREAK_UNMAP where pages that were part of the file are being removed from the file. The unbreakable case can tolerate layout changes that keep pinned pages mapped / allocated to the file.