Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4634236pxv; Tue, 29 Jun 2021 11:39:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq/3RPPAh1JTOgpEwFWJs/MfQPUBVQWmyu7dbNOddgeIPGYyd+AxApstP8JIQGfE5CFCPA X-Received: by 2002:a6b:6209:: with SMTP id f9mr5012180iog.109.1624991981805; Tue, 29 Jun 2021 11:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624991981; cv=none; d=google.com; s=arc-20160816; b=SDF5M9FDLa+nZkUxbMsBmnJrEt+h33PfJId4hnr6LJOhQiceqzkqqk99eVAwTcA74H CnSLLpWOQfCxIrYZlr1WcSF3yHNvo1RdnG/M83t/QijDqczAi89Ps9icvpGwRxu6f4D3 t6DM5DRKa7/npZ/b05l4Uj1vnP+hfPu4pR1Zs7iaxNBC8i6M1jLeq9wY0sWqi/54wL+U fcGAiyYLK7B8P+tICaqxJL7c4b4PYyyWiV02g/J7LvP715WLEU+La7TgbsWPBLqUY0CF 5WJAglPJHt8zaMqzNVX9fdctCgyh9ZsDj7KapnogKOBapmDrJbdCz2MulhXdCaN9JwYa SCUg== 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=2QbbE4wdzDhWa/HYs+kh3NCvOdQKWn+UR2FdRNnA0Sc=; b=C/Kqox8uPMxVa7XoU3m+wBx7wbrnXm9Km4tyodT9fkC8pfFfV5+iK/aGQ2r76sKiXA 8GGOVq6r5WQXsD0WOcgynooYHDMT4ScxniD2EpsVHy/4A4ie+glJnhlHLULmPLf8jtbp 7HW/eLnTwpzMGo2pKlYyab13YyfYC1eIQrOzUT3Rzv1urbQ4LYMS/8q70GvUG5v11iRz SccjACTcztF/r4kJzx1zCTo9vCa40nesT9rWkw5JCnFBBIOutdbkwdMUL7xn4pmGyNXb 5JKO3zSqLfYEJOuXGCSyP+CPxV1iAqyaiZ2oEPgyUUcDxywkDXBVvzeA5Brda+EJj8Q2 M+lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=P1KDhAFB; 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 y8si10207082ila.86.2021.06.29.11.39.28; Tue, 29 Jun 2021 11:39:41 -0700 (PDT) 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=P1KDhAFB; 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 S235132AbhF2SkJ (ORCPT + 99 others); Tue, 29 Jun 2021 14:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234140AbhF2SkJ (ORCPT ); Tue, 29 Jun 2021 14:40:09 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C566BC061760; Tue, 29 Jun 2021 11:37:41 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 62D894F7D; Tue, 29 Jun 2021 14:37:41 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 62D894F7D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1624991861; bh=2QbbE4wdzDhWa/HYs+kh3NCvOdQKWn+UR2FdRNnA0Sc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P1KDhAFBLUNiE9a3CmUaVdtGNfQJAFEhRocKudyIyrKi9Vt+30Khil9yWIVR5T6lL CoAEY547YRzSQoo0c7ciCLX3i4G46l7L3GkTMlkGFCw69rG3bTBxY3d+GieIWTCT3h I7mdRu1lk+E1kSUsOMQUlggvAhSKVtSSRZbz11Ew= Date: Tue, 29 Jun 2021 14:37:41 -0400 From: "J. Bruce Fields" To: Dave Chinner Cc: linux-fsdevel@vger.kernel.org, dai.ngo@oracle.com, linux-nfs@vger.kernel.org Subject: Re: automatic freeing of space on ENOSPC Message-ID: <20210629183741.GC1926@fieldses.org> References: <20210628194908.GB6776@fieldses.org> <20210629051149.GP2419729@dread.disaster.area> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210629051149.GP2419729@dread.disaster.area> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Jun 29, 2021 at 03:11:49PM +1000, Dave Chinner wrote: > On Mon, Jun 28, 2021 at 03:49:08PM -0400, J. Bruce Fields wrote: > > The NFS server currently revokes a client's state if the client fails to > > contact it within a lease period (90 seconds by default). That's > > harsher than necessary--if a network partition lasts longer than a lease > > period, but if nobody else needs that client's resources, it'd be nice > > to be able to hang on to them so that the client could resume normal > > operation after the network comes back. So we'd delay revoking the > > client's state until there's an actual conflict. But that means we need > > a way to clean up the client as soon as there is a conflict, to avoid > > unnecessarily failing operations that conflict with resources held by an > > expired client. > > I'm not sure what you are asking for filesystems to do here. This > seems like an application problem - revoking the client's open file > state and cleaning up silly rename files is application level > garbage collection, not filesystem level stuff. Right, the "application" in this case is knfsd. It may be keeping some unlinked files around that it doesn't really need to. So I'm basically wondering if I could get a notification from the filesystem that now would be a good time to close those files. I think Neil's convinced me this isn't a priority, though.... --b.