Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 23 Nov 2001 16:22:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 23 Nov 2001 16:22:33 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:51125 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Fri, 23 Nov 2001 16:22:24 -0500 Date: Fri, 23 Nov 2001 16:22:17 -0500 (EST) From: Alexander Viro To: linux-kernel@vger.kernel.org cc: Linus Torvalds , Marcelo Tosatti Subject: 2.4.15-pre9 breakage (inode.c) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Sigh... Supposed fix to problems with stale inodes was completely broken. What we need is "if we are doing last iput() on fs that is getting shut, sync it and don't leave it in cache". And yes, we have a similar path in iput(). Similar, but not quite the same. Fix is * new fs flag: "MS_ACTIVE". * set after normal ->read_super(). * reset after we are done with fsync_super() in kill_super(). * iput() checking that and if it's set - doing write_inode_now() and kicking it out of hash. I'll send patch in ~10 minutes. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/