Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3150253pxb; Thu, 10 Feb 2022 13:34:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQaZ11mIpzAu41KwJh9oQoCKCXtf+LxN7PLKYRKkHPRMNiWdCm7Vlt3gdY72uOLGtQ/Gmr X-Received: by 2002:a17:907:9815:: with SMTP id ji21mr6889069ejc.700.1644528891556; Thu, 10 Feb 2022 13:34:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644528891; cv=none; d=google.com; s=arc-20160816; b=l9B0A81Io5Ht1XBvgT849BUDFvsSqo1ptxBJ7NOubZxVmBVKlKuuoOCxr+eczCZtib yUjlfvHZC5njcSYJ5bil0We5poUGDLkfPBt79J3km5SwlSeOyhznZA51CmR09C/EEbRN vP4ubW/MbENChqU6ckpNSs+6Vk46Fyl0nvKGCx1aQIKhd6Zg89V74Pzdy0+7rZdoYtGi xuX4Z6OD8vCACHoOi2iU3MEAi1ohh5aPVYY/rLIoqZCi+dY0CkYFLimTCuU3Kbvy9V/I Avj0YfjWD1sPS3JTo3pISn0MKtz4Vk/ih1V5HLo+rWbus3HDq/TXbHkTiChlwS+ik6Zp SghA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=D84/F/FZLYWXYOIKdHvW6nRHJShfXgWMDM82VPYqTP8=; b=K3vYph5S0DPgVxTaFyOy8ZNUnvkHV+9D+RDEafJmtPjdRW2kGgWF8Dja5MtcgJ+zHM BhmdICi6tIOzKQigbzVN1bdVX6njHlOWk3QUW8X/WLNM3sfYlhpj/luH6FkcMdjDBtku WyHy0+kUnAeC+3ZaYaWzmVA4v7av5QqBGGGk3AskdF/yFnPDXbTt7biU0RcleaBaaU0s 8hLDj6+CltifJZbBwq8+RHcOHU3+1vKKbp/VBnnowi3d60gtnfFSC5/stNH33fKHW4BF +5piBJM6KrAvIbhFRuRrGYwK1bhDTcFg0LZ0VK8hF0zZjBKnH1nl5E2Avok+a/PUbr5h 5qsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=xSRfH2Eg; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb7si7842817ejc.722.2022.02.10.13.34.15; Thu, 10 Feb 2022 13:34:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=xSRfH2Eg; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbiBJS7m (ORCPT + 99 others); Thu, 10 Feb 2022 13:59:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiBJS7m (ORCPT ); Thu, 10 Feb 2022 13:59:42 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAE5410B7; Thu, 10 Feb 2022 10:59:42 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id DE36425C3; Thu, 10 Feb 2022 13:59:41 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org DE36425C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1644519581; bh=D84/F/FZLYWXYOIKdHvW6nRHJShfXgWMDM82VPYqTP8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xSRfH2Eg9gfZsNS7M4R0LVi909llUEGSkljO0pyMg378NPwcAfuY1k903zV+7dv4f FqG02VjR/2BFanvXO1qN6fDaqLB3A7JSV0I0r6H7mZ32NyEKtUne+rS5VMfBIkmVOO sViah9THwl8vD0oVflWn2jT9VHko/3YpX9PHc/x0= Date: Thu, 10 Feb 2022 13:59:41 -0500 From: Bruce Fields To: Chuck Lever III Cc: Dai Ngo , Jeff Layton , Al Viro , Linux NFS Mailing List , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH RFC v12 3/3] nfsd: Initial implementation of NFSv4 Courteous Server Message-ID: <20220210185941.GA24538@fieldses.org> References: <1644468729-30383-1-git-send-email-dai.ngo@oracle.com> <1644468729-30383-4-git-send-email-dai.ngo@oracle.com> <20220210151759.GE21434@fieldses.org> <20220210163215.GH21434@fieldses.org> <2223051F-B8F5-4E59-8A27-735F6A426785@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2223051F-B8F5-4E59-8A27-735F6A426785@oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Feb 10, 2022 at 04:52:15PM +0000, Chuck Lever III wrote: > > > On Feb 10, 2022, at 11:32 AM, J. Bruce Fields wrote: > > > > I was standing in the shower thinking.... > > > > We're now removing the persistent client record early, after the first > > lease period expires, instead of waiting till the first lock conflict. > > > > That simplifies conflict handling. > > > > It also means that all clients lose their locks any time a crash or > > reboot is preceded by a network partition of longer than a lease period. > > > > Which is what happens currently, so it's no regression. > > > > Still, I think it will be a common case that it would be nice to handle: > > there's a network problem, and as a later consequence of the problem or > > perhaps a part of addressing it, the server gets rebooted. There's no > > real reason to prevent clients recovering in that case. > > > > Seems likely enough that it would be worth a little extra complexity in > > the code that handles conflicts. > > > > So I'm no longer convinced that it's a good tradeoff to remove the > > persistent client record early. > > Would it be OK if we make this change after the current work is merged? Your choice! I don't have a strong opinion. --b.