Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756205AbYAWFxY (ORCPT ); Wed, 23 Jan 2008 00:53:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753369AbYAWFxQ (ORCPT ); Wed, 23 Jan 2008 00:53:16 -0500 Received: from verein.lst.de ([213.95.11.210]:42808 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752798AbYAWFxP (ORCPT ); Wed, 23 Jan 2008 00:53:15 -0500 Date: Wed, 23 Jan 2008 06:47:47 +0100 From: Christoph Hellwig To: Dave Hansen Cc: Andrew Morton , Mariusz Kozlowski , linux-kernel@vger.kernel.org, davem@davemloft.net, sparclinux@vger.kernel.org, Christoph Hellwig Subject: Re: 2.6.24-rc8-mm1: sparc64 warning at fs/file_table.c:49 __fput+0x1a8/0x1e0() Message-ID: <20080123054747.GA14729@lst.de> References: <20080117023514.9df393cf.akpm@linux-foundation.org> <200801222130.24136.m.kozlowski@tuxland.pl> <20080122130228.e7596163.akpm@linux-foundation.org> <1201043638.7585.47.camel@nimitz.home.sr71.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1201043638.7585.47.camel@nimitz.home.sr71.net> User-Agent: Mutt/1.3.28i X-Spam-Score: 0 () Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1071 Lines: 24 On Tue, Jan 22, 2008 at 03:13:58PM -0800, Dave Hansen wrote: > The emergency remount code forcibly removes FMODE_WRITE from > filps. The r/o bind mount code notices that this was done > without a proper mnt_drop_write() and properly gives a > warning. > > This patch does a mnt_drop_write() and also notes in the > filp that this was done to suppress any warning that would > have otherwise been triggered. > > I also wonder if inode->i_writecount is made inconsistent > by the emergency remount code. I guess it is, but the > damage is limited to a single inode instead of being > visible more globally like the mnt write count. Probably > not really worth fixing. The right fix is to not simply remove FMODE_WRITE, but just remove this whole function. Until we have a proper revoke it will cause more harm than good. -- 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/