From: Jeff Layton <jlayton@redhat.com>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] add procfs tunable to enable immediate panic when there are busy inodes after umount
Date: Tue, 29 May 2007 15:46:28 -0400 [thread overview]
Message-ID: <20070529154628.ae4f6c7a.jlayton@redhat.com> (raw)
In-Reply-To: <20070529193813.GC5666@martell.zuzino.mipt.ru>
On Tue, 29 May 2007 23:38:13 +0400
Alexey Dobriyan <adobriyan@gmail.com> wrote:
> On Tue, May 29, 2007 at 11:40:42AM -0400, Jeff Layton wrote:
> > After spending quite a bit of time tracking down a "VFS: busy inodes
> > after unmount" problem, it occurs to me that it would be nice to be
> > able to force a panic when that occurs. While an oops message alone is
> > not generally helpful for tracking down this sort of problem,
> > collecting and analyzing a coredump when this occurs can be.
> >
> > The following patch adds a procfs tunable that allows you to force a
> > core when a "busy inodes after umount" problem occurs. It also changes
> > the classic error message to be something a bit less cryptic to users.
>
> > @@ -303,10 +305,15 @@ void generic_shutdown_super(struct super_block *sb)
> > sop->put_super(sb);
> >
> > /* Forget any remaining inodes */
> > - if (invalidate_inodes(sb)) {
> > - printk("VFS: Busy inodes after unmount of %s. "
> > - "Self-destruct in 5 seconds. Have a nice day...\n",
> > - sb->s_id);
> > + if (busy = invalidate_inodes(sb)) {
> > + printk("VFS: %d busy inodes after unmount of %s. ",
> > + busy, sb->s_id);
> > + if (umount_debug != 0) {
> > + printk("Crashing host on request.\n");
> > + BUG();
> > + } else {
> > + printk("This machine will likely crash eventually. Consider a reboot.\n");
> > + }
>
> You can add just BUG_ON here and do
>
> echo 1 >/proc/sys/kernel/panic_on_oops
>
I certainly could, but the problem is that there's little point in
panicing immediately here if you can't collect a coredump. Oops
messages aren't very helpful for tracking this sort of thing down, so
I'd think we want the BUG() conditional on something more granular
than panic_on_oops.
--
Jeff Layton <jlayton@redhat.com>
next prev parent reply other threads:[~2007-05-29 19:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-29 15:40 Jeff Layton
2007-05-29 19:38 ` Alexey Dobriyan
2007-05-29 19:46 ` Jeff Layton [this message]
2007-05-30 0:28 ` David Chinner
2007-05-30 11:47 ` Jeff Layton
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=20070529154628.ae4f6c7a.jlayton@redhat.com \
--to=jlayton@redhat.com \
--cc=adobriyan@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®