From: Al Viro <viro@ZenIV.linux.org.uk>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Joern Engel <joern@logfs.org>, Dave Chinner <dchinner@redhat.com>,
werner <w.landgraf@ru.ru>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.39-rc5-git2 boot crashs
Date: Sat, 30 Apr 2011 04:27:59 +0100 [thread overview]
Message-ID: <20110430032759.GK9487@ZenIV.linux.org.uk> (raw)
In-Reply-To: <BANLkTi=9Zq8AdGMyfwyp1nwyjD+PCGQydA@mail.gmail.com>
On Fri, Apr 29, 2011 at 08:09:16PM -0700, Linus Torvalds wrote:
> On Fri, Apr 29, 2011 at 8:02 PM, Al Viro <viro@zeniv.linux.org.uk> wrote:
> >
> > Wait a bit; _can_ we get there with non-NULL ->s_master_inode et.al.?
> > iput(NULL) is a noop... ?I don't think so, since logfs_init_journal()
> > is not called until after we initialize that list.
> >
> > Not that I'd object against taking that initialization earlier, of course,
> > but there seems to be something else going on... ?Which iput() it is?
>
> Not something I can guess from the oops, sadly. Gcc has inlined
> everything into logfs_mount, and the "0x44f/0x5cc" offset isn't very
> helpful (with the same compiler version and config options it would be
> possible to figure it out).
>
> But looking at it, logfs_init_mapping() is currently called before
> "s_freeing_list" is initialized, and it sets up at least
> s_mapping_inode. So if anything fails between that point and the point
> where we initialize s_freeing_list, I think we're toast.
>
> I didn't check the other inodes, but at least that one does seem to be
> potentially non-NULL. No?
Ho-hum... Point. Let's take that initialization up to the beginning of
logfs_read_sb(), see if oops goes away and then try to figure out WTF
we hadn't been seeing it all along. I don't see anything recent affecting
that area, but then logfs goes through many odd places during mount (including,
IIRC, mtd). So there might be many sources of the failure where we used to
have none and failure in that spot would, indeed, fuck the things up that
way...
In any case, taking that initialization to the beginning of logfs_read_sb()
(if not up to its only caller where we set ->s_op et.al. anyway) seems to be
the obviously right thing to do. Unless logfs folks have some subtle
objections?
next prev parent reply other threads:[~2011-04-30 3:28 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-29 22:10 2.6.39-rc5-git2 boot crashs werner
2011-04-30 2:31 ` Fwd: " Linus Torvalds
2011-04-30 2:47 ` Linus Torvalds
2011-04-30 2:55 ` Al Viro
2011-04-30 3:02 ` Al Viro
2011-04-30 3:09 ` Linus Torvalds
2011-04-30 3:27 ` Al Viro [this message]
2011-04-30 3:39 ` werner
2011-04-30 4:00 ` Linus Torvalds
2011-04-30 4:13 ` werner
2011-04-30 4:20 ` Linus Torvalds
[not found] ` <web-515904487@zbackend1.aha.ru>
[not found] ` <BANLkTimDHTB+NF8EzjvjBvu0e+MHt8tP1Q@mail.gmail.com>
2011-04-30 5:02 ` werner
2011-04-30 17:09 ` Linus Torvalds
[not found] ` <web-516060724@zbackend1.aha.ru>
2011-04-30 18:23 ` Linus Torvalds
2011-04-30 18:31 ` werner
2011-04-30 18:44 ` Justin P. Mattock
2011-04-30 5:26 ` werner
2011-04-30 4:00 ` werner
2011-04-30 4:29 ` werner
[not found] ` <web-515897851@zbackend1.aha.ru>
[not found] ` <BANLkTi==L3vDQ0jF9jP1hzhU-WmToBh=uA@mail.gmail.com>
[not found] ` <20110430114332.GC29280@htj.dyndns.org>
[not found] ` <4DBC09C7.9080205@fusionio.com>
[not found] ` <BANLkTimGJiugYaXW8c77dspjADrF+m4VHA@mail.gmail.com>
[not found] ` <web-516074613@zbackend1.aha.ru>
[not found] ` <BANLkTin8wf0T9nD9zmdh=4-rmj6WCy86cA@mail.gmail.com>
[not found] ` <web-516109980@zbackend1.aha.ru>
2011-05-01 2:53 ` Linus Torvalds
-- strict thread matches above, loose matches on Subject: below --
2011-05-01 1:52 werner
2011-05-01 2:52 ` Linus Torvalds
[not found] <web-516164730@zbackend1.aha.ru>
[not found] ` <BANLkTimda-mi2rjgnX0jqg7Pg-J6HSDb6w@mail.gmail.com>
2011-05-01 18:07 ` werner
2011-05-01 18:20 ` Linus Torvalds
2011-05-02 13:04 ` Steven Rostedt
2011-05-02 7:09 werner
2011-05-02 12:31 ` Steven Rostedt
2011-05-02 13:56 werner
2011-05-02 15:16 ` Steven Rostedt
[not found] <web-516390660@zbackend1.aha.ru>
2011-05-02 15:17 ` Linus Torvalds
2011-05-02 22:11 ` werner
2011-05-02 23:23 ` Linus Torvalds
2011-05-03 1:22 ` werner
2011-05-02 22:28 werner
2011-05-02 23:24 ` Linus Torvalds
[not found] ` <web-516990066@zbackend1.aha.ru>
2011-05-03 15:22 ` Linus Torvalds
2011-05-03 19:08 ` Ingo Molnar
2011-05-03 20:17 ` Linus Torvalds
2011-05-03 20:20 ` H. Peter Anvin
2011-05-03 20:50 ` Ingo Molnar
2011-05-03 21:45 ` Linus Torvalds
2011-05-03 22:01 ` H. Peter Anvin
2011-05-04 7:19 ` Borislav Petkov
2011-05-04 7:38 ` Ingo Molnar
2011-05-04 7:55 ` Borislav Petkov
2011-05-04 4:13 werner
[not found] <web-517412206@zbackend1.aha.ru>
2011-05-04 6:14 ` Ingo Molnar
2011-05-04 14:25 [block IO crash] " Tejun Heo
2011-05-04 14:46 ` Thomas Gleixner
2011-05-04 15:00 ` Christoph Lameter
2011-05-04 15:13 ` Linus Torvalds
2011-05-04 15:28 ` Christoph Lameter
2011-05-04 15:37 ` Pekka Enberg
2011-05-04 15:53 ` Linus Torvalds
2011-05-04 18:20 ` Linus Torvalds
[not found] ` <web-518008166@zbackend1.aha.ru>
[not found] ` <web-518059420@zbackend1.aha.ru>
[not found] ` <20110505060204.GA28015@elte.hu>
2011-05-05 6:46 ` werner
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=20110430032759.GK9487@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=dchinner@redhat.com \
--cc=joern@logfs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=w.landgraf@ru.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