Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp881362pxu; Thu, 3 Dec 2020 15:19:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJydLgUQ8OPI6Tf1yJDnTMnIxISNx71PJDPiWB08VwgMkKfgx5MhuvhxnqXHamIk5xQGVvHJ X-Received: by 2002:a17:906:4050:: with SMTP id y16mr4451697ejj.537.1607037552111; Thu, 03 Dec 2020 15:19:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607037552; cv=none; d=google.com; s=arc-20160816; b=qrHoA+o3pkOF+CNQMi8LwF5MPdZDtih9SJ8le6jf3Q1NcntW2RAJUG5UjKK36emLgy uRzWvT0Yuq0nO4DC4Vw5Oy2GpG0OeF637XAVLbGw6C13XNrQvcGsW0hYtxo/P4iyJTQK soRzRVV9I+rR/1Q5XpeW1qfG5VvQosrEhxV+QGsXEd9Yxu/uhq4vTQWxdOyBN7k2XEgQ rRY2Vpi805DlLQBbuiK+tImegZnZX8hUTMxaLdlvVMecvnLaWbw11LuzIETT6igq2Fiz sydrECNKyTgSD2T/cRHmdbW4xgVEIohN8xnFPa/eBGzFt1AJ2Wgjv8/ALkfZwDs1OcER V7SA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=bRzgyJX+mw3fZ2rQDnyS5pzj8lBJX8VmWyQ/SVhPMVU=; b=FfRZlqhcCtnSkXhJJKukyiJJFjRvxLYWFKph90DkB7Jx05i2XIeseDqHAwpR24dpC9 QYhFt0CQfxjQjIbeEr3gcugsOZaqJZ9GQOJZEXXF9GndpSHihMq059w6gW5/d6UbqzVT xcWoOx/Rnra/sWqTSHc3iGU9eEmqwZZRR/tWwYBnSX8Re/Vg2W25+UMI2ROwyIFijamY Tkut8n724rUkYLTBUNuIH50kuCkusn/6GbuNktab+pNiyl7t5Ww1ZlKFG+U5+baC41id W52aT6XAtGLgO5uf+y7j82DuuHU3DQojM/YbBkuoJmzAvAyXFMJXq2P1kqDvd/n3WRzk HC9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=uLzGNFyi; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si1890181edj.165.2020.12.03.15.18.40; Thu, 03 Dec 2020 15:19:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=uLzGNFyi; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726179AbgLCXRh (ORCPT + 99 others); Thu, 3 Dec 2020 18:17:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgLCXRh (ORCPT ); Thu, 3 Dec 2020 18:17:37 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09A2EC061A4F for ; Thu, 3 Dec 2020 15:16:57 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id 9353A6F73; Thu, 3 Dec 2020 18:16:55 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 9353A6F73 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1607037415; bh=bRzgyJX+mw3fZ2rQDnyS5pzj8lBJX8VmWyQ/SVhPMVU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uLzGNFyi4yUFnzfNGOkoJJBUHlt1FjT4GiUFAzZeoKbsi9EDcy0tDTCa55e+5KdoK fTAZVuHtp4NLOVUuf/NqjitqopDi1nQ9DnkCfNLxi1Vt279Jg6OnqdoGer3QjoA85p x+qZ9MRNXM4XKF9iwIqakWSTc1A5r/B3ixHtj9IM= Date: Thu, 3 Dec 2020 18:16:55 -0500 From: "bfields@fieldses.org" To: Trond Myklebust Cc: "linux-cachefs@redhat.com" , "linux-nfs@vger.kernel.org" , "daire@dneg.com" Subject: Re: Adventures in NFS re-exporting Message-ID: <20201203231655.GH27931@fieldses.org> References: <1055884313.92996091.1606250106656.JavaMail.zimbra@dneg.com> <20201124211522.GC7173@fieldses.org> <932244432.93596532.1606324491501.JavaMail.zimbra@dneg.com> <1403656117.98163597.1606998035261.JavaMail.zimbra@dneg.com> <20201203185109.GB27931@fieldses.org> <4903965f2beb742e0eca089b5db8aa3a4cabb7f0.camel@hammerspace.com> <20201203211328.GC27931@fieldses.org> <9df8556bf825bd0d565f057b115e35c1b507cf46.camel@hammerspace.com> <20201203224520.GG27931@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Dec 03, 2020 at 10:53:26PM +0000, Trond Myklebust wrote: > On Thu, 2020-12-03 at 17:45 -0500, bfields@fieldses.org wrote: > > On Thu, Dec 03, 2020 at 09:34:26PM +0000, Trond Myklebust wrote: > > > I've been wanting such a function for quite a while anyway in > > > order to allow the client to detect state leaks (either due to > > > soft timeouts, or due to reordered close/open operations). > > > > One sure way to fix any state leaks is to reboot the server.  The > > server throws everything away, the clients reclaim, all that's left > > is stuff they still actually care about. > > > > It's very disruptive. > > > > But you could do a limited version of that: the server throws away > > the state from one client (keeping the underlying locks on the > > exported filesystem), lets the client go through its normal reclaim > > process, at the end of that throws away anything that wasn't > > reclaimed.  The only delay is to anyone trying to acquire new locks > > that conflict with that set of locks, and only for as long as it > > takes for the one client to reclaim. > > One could do that, but that requires the existence of a quiescent > period where the client holds no state at all on the server. No, as I said, the client performs reboot recovery for any state that it holds when we do this. --b.