From: Christoph Hellwig <hch@infradead.org>
To: Patrick Schreurs <patrick@news-service.com>
Cc: Christoph Hellwig <hch@infradead.org>,
linux-xfs@oss.sgi.com, Tommy van Leeuwen <tommy@news-service.com>,
Lachlan McIlroy <lmcilroy@redhat.com>,
Eric Sandeen <sandeen@sandeen.net>
Subject: Re: 2.6.30 panic - xfs_fs_destroy_inode
Date: Tue, 21 Jul 2009 10:12:25 -0400 [thread overview]
Message-ID: <20090721141225.GA24330@infradead.org> (raw)
In-Reply-To: <4A4CEEF2.7040101@news-service.com>
On Thu, Jul 02, 2009 at 07:31:30PM +0200, Patrick Schreurs wrote:
> Hi Christoph,
>
> With this patch we see the following:
>
> kernel BUG at fs/inode.c:1288!
Okay, I think I figured out what this is. You hit the case where
we re-use an inode that is gone from the VFS point of view, but
still in xfs reclaimable state. We reinitialize it using
inode_init_always, but inode_init_always does not touch i_state, which
still includes I_CLEAR. See the patch below which sets it to the
expected state. What really worries me is that I don't seem to be
able to actually hit that case in testing.
Can you try the patch below ontop of the previous one?
Index: linux-2.6/fs/xfs/xfs_iget.c
===================================================================
--- linux-2.6.orig/fs/xfs/xfs_iget.c 2009-07-21 16:07:41.654923213 +0200
+++ linux-2.6/fs/xfs/xfs_iget.c 2009-07-21 16:08:55.064151137 +0200
@@ -206,6 +206,7 @@ xfs_iget_cache_hit(
error = ENOMEM;
goto out_error;
}
+ inode->i_state = I_LOCK|I_NEW;
} else {
/* If the VFS inode is being torn down, pause and try again. */
if (!igrab(inode))
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2009-07-21 14:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 17:04 2.6.30 panic - xfs_fs_destroy_inode Patrick Schreurs
2009-06-17 21:31 ` Eric Sandeen
2009-06-18 7:55 ` Patrick Schreurs
2009-06-20 10:18 ` Patrick Schreurs
2009-06-20 13:29 ` Eric Sandeen
2009-06-20 16:31 ` Patrick Schreurs
2009-06-23 7:24 ` Patrick Schreurs
2009-06-23 8:17 ` Lachlan McIlroy
2009-06-23 17:13 ` Christoph Hellwig
2009-06-30 20:13 ` Patrick Schreurs
2009-06-30 20:42 ` Christoph Hellwig
2009-07-20 19:19 ` Patrick Schreurs
2009-07-20 20:14 ` Christoph Hellwig
2009-07-01 12:44 ` Christoph Hellwig
2009-07-02 7:09 ` Tommy van Leeuwen
2009-07-02 17:31 ` Patrick Schreurs
2009-07-21 14:12 ` Christoph Hellwig [this message]
2009-07-22 8:55 ` Tommy van Leeuwen
2009-08-17 21:14 ` Christoph Hellwig
2009-08-20 12:24 ` Tommy van Leeuwen
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=20090721141225.GA24330@infradead.org \
--to=hch@infradead.org \
--cc=linux-xfs@oss.sgi.com \
--cc=lmcilroy@redhat.com \
--cc=patrick@news-service.com \
--cc=sandeen@sandeen.net \
--cc=tommy@news-service.com \
/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