Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752057AbdGGPvf (ORCPT ); Fri, 7 Jul 2017 11:51:35 -0400 Received: from imap.thunk.org ([74.207.234.97]:57450 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751059AbdGGPvd (ORCPT ); Fri, 7 Jul 2017 11:51:33 -0400 Date: Fri, 7 Jul 2017 11:51:17 -0400 From: "Theodore Ts'o" To: Jeff Layton Cc: "Darrick J. Wong" , "J. Bruce Fields" , William Koh , Andreas Dilger , linux-ext4 , lkml , Kernel Team , linux-fsdevel , Trond Myklebust , xfs Subject: Re: [PATCH] fs: ext4: inode->i_generation not assigned 0. Message-ID: <20170707155117.4zp7qkpreeptwlgc@thunk.org> Mail-Followup-To: Theodore Ts'o , Jeff Layton , "Darrick J. Wong" , "J. Bruce Fields" , William Koh , Andreas Dilger , linux-ext4 , lkml , Kernel Team , linux-fsdevel , Trond Myklebust , xfs References: <20170629045940.GB5865@birch.djwong.org> <20170629143551.GB1651@fieldses.org> <20170629172528.GA5869@birch.djwong.org> <20170629183053.GA4178@fieldses.org> <20170629185022.GB4178@fieldses.org> <20170704040446.GB4704@birch.djwong.org> <20170705011534.GC1420@fieldses.org> <20170705191933.GA6297@magnolia> <20170705202750.j5texbm2xdxnph6m@thunk.org> <1499424697.5826.3.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1499424697.5826.3.camel@redhat.com> User-Agent: NeoMutt/20170306 (1.8.0) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1764 Lines: 36 On Fri, Jul 07, 2017 at 06:51:37AM -0400, Jeff Layton wrote: > > Right. That's the case today if we don't remove support for old > filehandles. If we were to remove them, the clients would get back > -ESTALE there if they tried to use the old 2.2-style fh's that they saw > before the upgrade. > > The main takeaway here is that NFS filehandle lifetime is really only > bounded by the boot time of the oldest clients. Well, and how long an NFS server is still up. So one could construct a use case where a (hypothetical) system administrator had a RHEL 7.0 system with a 2.2.16-22 kernel, and they try to update it to a (hypothetical) RHEL 10 kernel in one fell swoop with a 4.13+ kernel that no longer supports the 2-2-style fh's. A client that had the server mounted when it was running the 2.2 kernel might only be up for a few hours, before the upgrade to RHEL 10 happened, and then the client would get ESTALE errors. Of course, I've stopped carrying about enterprise kernel support a long time ago, so I just think that scenario is funny. I recognize that folks who work at Red Hat have to worry about such things --- and I'm sorry. :-) In reality a server installed with RHEL 7.0 has probably died of old age by now --- unless someone crazy is running it in a VMware VM because they had some enterprise software package or some bar-code printing module for which they don't have source code[1], and so they are stuck on RHEL 7.0, even in 2017. Have I mentioned I'm so glad I don't have to worry these sorts of things any more? - Ted [1] That wasn't a made up example; I once visited a customer on site, back in the day, that had that exact problem, and so they were stuck on some antique version of RHEL, and they expected me to help them.