Return-Path: Received: from verein.lst.de ([213.95.11.211]:54192 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755057AbdAAN6V (ORCPT ); Sun, 1 Jan 2017 08:58:21 -0500 Date: Sun, 1 Jan 2017 14:58:17 +0100 From: Christoph Hellwig To: Bruce James Fields Cc: Trond Myklebust , linux-nfs@vger.kernel.org Subject: Re: [nfsv4] RFC 7530: Filehandle of opened file after the REMOVE Message-ID: <20170101135817.GA18418@lst.de> References: <20161214112112.Horde.aPh8AjT6iWRl37CULwihyV7@mail.telka.sk> <20161227144414.GA32002@fieldses.org> <20161229024703.GA21325@fieldses.org> <20161229074830.GA3002@lst.de> <20161229205426.GA389@fieldses.org> <20161230083530.GA26413@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20161230083530.GA26413@lst.de> Sender: linux-nfs-owner@vger.kernel.org List-ID: Btw, thinking about this a bit more the simplest thing possible would be a mount option to delay reclaiming unlinked inodes for N seconds, set to the NFS gracce periods plus a reasonable slack for starting NFSD after mounting the fs. This would be fairly easily to implement in the fs, does not require tight coupling between the fs and NFSD, and will eventually reclaim the unlinked inodes even if the file system happens to not be exported at all. I could implement this quickly if you want to play around with the NFSD side.