public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: Fredrik Steen <fredrik@stone.nu>
Cc: linux-kernel@vger.kernel.org, dwmw2@infradead.org
Subject: 2.4: kernel BUG at inode.c:334!
Date: Fri, 26 Mar 2004 15:39:59 -0300	[thread overview]
Message-ID: <20040326183959.GC4218@logos.cnet> (raw)
In-Reply-To: <20040326154000.GA28389@panic.unixguru.info>

On Fri, Mar 26, 2004 at 04:40:00PM +0100, Fredrik Steen wrote:
> On [040326 16:20] Marcelo Tosatti <marcelo.tosatti@cyclades.com> wrote:
> >  On Thu, Mar 25, 2004 at 09:32:22AM -0800, Martin J. Bligh wrote:
> >  > http://bugme.osdl.org/show_bug.cgi?id=2367
> >  
> > This is the second bug report of "BUG at inode.c:334" I have seen. 
> > The other one reported by Mika Fischer.
> >  
> > Its indeed not valid for I_LOCK or I_FREEING inode's to be on the 
> > superblock dirty list. I cannot see how this is happening.
> >  
> > Martin, Mika, can you please apply the attached patch and rerun the tests? 
> >  
> > It might give a bit more clue. Thanks.
> >  
> > --- fs/inode.c.orig	2004-03-26 12:30:01.961087616 -0300
> [...]
> 
> I ran the patch and got this:
> inode->i_istate:f
> Kernel BUG at inode.c:340!
> [...]

Hi Fredik, 

It seems Trond already figured it out, we are erroneously moving 
locked inodes to the dirty list. He attached the following patch in 
the bugzilla to fix the problem. Can you please give it a try?

--- linux-2.4.26-up/fs/inode.c.orig	2004-03-19 17:12:46.000000000 -0500
+++ linux-2.4.26-up/fs/inode.c	2004-03-26 13:01:23.000000000 -0500
@@ -319,7 +319,8 @@ void refile_inode(struct inode *inode)
 	if (!inode)
 		return;
 	spin_lock(&inode_lock);
-	__refile_inode(inode);
+	if (!(inode->i_state & I_LOCK))
+		__refile_inode(inode);
 	spin_unlock(&inode_lock);
 }




  parent reply	other threads:[~2004-03-26 19:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-25 17:32 [Bug 2367] New: kernel BUG at inode.c:334! Martin J. Bligh
     [not found] ` <20040326154915.GC3472@logos.cnet>
2004-03-26 15:58   ` Marcelo Tosatti
     [not found]     ` <20040326154000.GA28389@panic.unixguru.info>
2004-03-26 18:39       ` Marcelo Tosatti [this message]
2004-03-30 14:51         ` 2.4: " Jaco Kroon
2004-03-30 16:51           ` Marcelo Tosatti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040326183959.GC4218@logos.cnet \
    --to=marcelo.tosatti@cyclades.com \
    --cc=dwmw2@infradead.org \
    --cc=fredrik@stone.nu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox