From: Jan Kara <jack@suse.cz>
To: Andrew Morton <akpm@osdl.org>
Cc: mjt@tls.msk.ru, linux-kernel@vger.kernel.org
Subject: Re: Another Assertion failure in journal_start()
Date: Thu, 2 Feb 2006 13:06:28 +0100 [thread overview]
Message-ID: <20060202120628.GC18075@atrey.karlin.mff.cuni.cz> (raw)
In-Reply-To: <20060202000705.481421b6.akpm@osdl.org>
> Jan Kara <jack@suse.cz> wrote:
> >
> > > Just hit our main server, while doing kernel compile
> > > (producing a .deb using custom script which does quite
> > > some usage of symlinks - hence sys_symlink() operation
> > > is in call trace) -- that particular filesystem stopped
> > > working, while the rest of the system was still operational.
> > >
> > > It's 2.6.15.1 kernel running on an athlon-1.3GHz, pretty
> > > old but pretty stable box, with ECC memory. The filesystem
> > > in question is on top of a raid0 array out of 4 scsi drives
> > > (it's used as a "staging area" for various temporary stuff,
> > > incl. compiles and whatnot).
> > >
> > > Any clues about this one?
> > >
> > > Note it's the first time I encountered an error like this
> > > one, but I did quite alot of kernel compiles on this box
> > > already since last boot (I'm experimenting with Xen on
> > > another box, this box is used as a "compiling server").
> > > So I can hardly say the problem is "easily reproduceable".
> > The trace you provided is good enough so that I don't need to
> > reproduce the problem :). The bug is in ext3 - the problem is that we
> > start a transaction and then do something that needs to allocate memory
> > but we don't set GFP_NOFS. As we are low on memory we try to shrink
> > caches and remove some inode on different filesystem from memory. We
> > recurse back into the fs code which finds out we have already started
> > transaction on different fs and BUGs.
> > The right solution probably is to pass gfp flags to page_symlink().
> > I'll write a patch.
>
> That'd be the safest approach. It'd be nicer to close off the transaction
> while running page_symlink(), although we'd need to think hard about the
> atomicity implications of that.
Yes, I also thought about this but the atomicity is a problem here - we
have to create inode before calling page_symlink() and we cannot afford
to stop the transaction before calling page_symlink() as it attaches
some blocks to the inode... OK, we could play some tricks with attaching
the inode to the orphan list but I'm not sure it's worth the complexity.
I'll check whether it would really work.
Honza
--
Jan Kara <jack@suse.cz>
SuSE CR Labs
prev parent reply other threads:[~2006-02-02 12:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-31 11:05 Michael Tokarev
2006-02-01 18:52 ` Jan Kara
2006-02-02 8:07 ` Andrew Morton
2006-02-02 12:06 ` Jan Kara [this message]
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=20060202120628.GC18075@atrey.karlin.mff.cuni.cz \
--to=jack@suse.cz \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjt@tls.msk.ru \
/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
all inboxes | Powered by JetHome®