Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp114530ybe; Wed, 4 Sep 2019 16:13:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxD2apehlEO0Tj3JN6ZEwOtK4Ncs/6ybh80JqsiqP3h63OSmoMPJ/DVSpg2v+qWBF/jUZAX X-Received: by 2002:a17:90a:8d0c:: with SMTP id c12mr649499pjo.133.1567638790473; Wed, 04 Sep 2019 16:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567638790; cv=none; d=google.com; s=arc-20160816; b=go5k2GXgWE/Jrf394bvaZTG3GbXItgy/6aPLkTaqZPGw5HuKEz/VyOP26dAEdHq0b0 fNVLsh748kWmlY0j5L1n8miCds9GNjdD1B6sYL9rlJCgU8srn/IF9rTmJhGv4JeHzKg7 WSZ+upgQ2i0AbcJsfsXqVMn6yoXR0IHPm2iDMX8XtzfA/CkwYQs92+l0mU9L26fGy+QZ KOyLPRhfFW2L8qIBrrR1ITrIJFV+MOzIn+nP1cNlenlXgiW2oSyAnHzVp4h6FcizmS9H b8TY/aFz39ha3GElgYTar0TFSi/BwnGQAMDGLMYNwG8woP9r6pFk1gAgr9UkIVH4QKgU crYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=KcHEqM2TNQedobjZznlViJ4AvUuHmWBw0j98IvGFhfc=; b=frFnss1tg8bfvHm94DyMAtwrkHDPZOOJijQAmwbbeysf6Ult/oqydIvpnmUZ0m96Vt 2mMEHRKyKl3mlPGesBRR+qnRcIglehmknD8vsbDkF9vLOIgJ71Sda53Sa6WjDlrzzWCd KfiwPAh60dCY+G0rvsUxz9mSlA6OuOdC0Zs/fsJHonhq1ta3WrYQStbiQqkIqBsryuQ9 rr+1abxPjZBkONN9G/bniqaoqVeqNx85RDF+hXOHjDKt5PZLfKDFq1yZEFEfjsi1r6ap N8WZH2NWmF3xi5JSgcayuAgRGuy8993WT8N82YT7RlXi4NFl7Dncyy4ZhlXw4vprZI3U 9F1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=G4fn03uV; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si204713pfq.54.2019.09.04.16.12.46; Wed, 04 Sep 2019 16:13:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-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=@nvidia.com header.s=n1 header.b=G4fn03uV; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729863AbfIDXMh (ORCPT + 99 others); Wed, 4 Sep 2019 19:12:37 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:18618 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727741AbfIDXMg (ORCPT ); Wed, 4 Sep 2019 19:12:36 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 04 Sep 2019 16:12:36 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 04 Sep 2019 16:12:35 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 04 Sep 2019 16:12:35 -0700 Received: from [10.110.48.28] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 4 Sep 2019 23:12:35 +0000 Subject: Re: [RFC PATCH v2 02/19] fs/locks: Add Exclusive flag to user Layout lease To: , Andrew Morton CC: Jason Gunthorpe , Dan Williams , Matthew Wilcox , Jan Kara , Theodore Ts'o , Michal Hocko , Dave Chinner , , , , , , , References: <20190809225833.6657-1-ira.weiny@intel.com> <20190809225833.6657-3-ira.weiny@intel.com> X-Nvconfidentiality: public From: John Hubbard Message-ID: <69a7c037-6b4b-dbe3-2b42-77f85043b9eb@nvidia.com> Date: Wed, 4 Sep 2019 16:12:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190809225833.6657-3-ira.weiny@intel.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1567638756; bh=KcHEqM2TNQedobjZznlViJ4AvUuHmWBw0j98IvGFhfc=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=G4fn03uVMA7J4UC1m9Yj7DhfsqKE5JCNHVM+oBqTe0AR3ZAlGEFmH7YKmkjPCmtCQ LUvXJdUANpLjlNJVqXY9TBqjeHx+L53SCBVVR7cf/kJBTDzGJICMvneFxnJ/bznKdv dNrJ4yQD+F1DCobVh03UMVVgaQfrILzPPrM7GeO2NaLVNZG5LHBQIJvvbOmoaMH7bs msCDq0E+I3UeIhdWC/toHOT1SlxdWDyKPOg3HjVgFJReZrxpb8PrvSxEcypog9tmYA zj992eW84rG8B8gGL5qOlDh0yQONipgKi9UW/dLLh2vAF7f5ffKJVuuRAS6ttv/Rev x8kDOD2mdY4mQ== Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 8/9/19 3:58 PM, ira.weiny@intel.com wrote: > From: Ira Weiny > > Add an exclusive lease flag which indicates that the layout mechanism > can not be broken. After studying the rest of these discussions extensively, I think in all cases FL_EXCLUSIVE is better named "unbreakable", rather than exclusive. If you read your sentence above, it basically reinforces that idea: "add an exclusive flag to mean it is unbreakable" is a bit of a disconnect. It would be better to say, Add an "unbreakable" lease flag which indicates that the layout lease cannot be broken. Furthermore, while this may or may not be a way forward on the "we cannot have more than one process take a layout lease on a file/range", it at least stops making it impossible. In other words, no one is going to write a patch that allows sharing an exclusive layout lease--but someone might well update some of these patches here to make it possible to have multiple processes take unbreakable leases on the same file/range. I haven't worked through everything there yet, but again: * FL_UNBREAKABLE is the name you're looking for here, and * I think we want to allow multiple processes to take FL_UNBREAKABLE leases on the same file/range, so that we can make RDMA setups reasonable. By "reasonable" I mean, "no need to have a lead process that owns all the leases". thanks, -- John Hubbard NVIDIA