From: Fengguang Wu <wfg@mail.ustc.edu.cn>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: linux-kernel@vger.kernel.org, gregkh@suse.de, akpm@linux-foundation.org
Subject: Re: BUG on unloading the fuse module
Date: Fri, 5 Oct 2007 19:01:23 +0800 [thread overview]
Message-ID: <391582087.27602@ustc.edu.cn> (raw)
Message-ID: <20071005110123.GA5489@mail.ustc.edu.cn> (raw)
In-Reply-To: <E1Idkor-0002v6-00@dorka.pomaz.szeredi.hu>
On Fri, Oct 05, 2007 at 12:54:09PM +0200, Miklos Szeredi wrote:
> > > > In 2.6.23-rc8-mm2, the fuse module always bugs on unloading.
> > >
> > > It's fixed in Greg's patch queue.
> > >
> > > This patch against -mm will also fix it.
> >
> > Oh no, it panics:
>
> How about this one?
Yes, it did the trick.
Thank you!
Fengguang
> ---
>
> Index: linux/lib/kobject.c
> ===================================================================
> --- linux.orig/lib/kobject.c 2007-10-02 17:20:04.000000000 +0200
> +++ linux/lib/kobject.c 2007-10-05 12:52:52.000000000 +0200
> @@ -498,18 +498,18 @@ void kobject_cleanup(struct kobject * ko
> struct kobj_type * t = get_ktype(kobj);
> struct kset * s = kobj->kset;
> struct kobject * parent = kobj->parent;
> - const char *k_name = kobj->k_name;
>
> pr_debug("kobject %s: cleaning up\n",kobject_name(kobj));
> - kobj->k_name = NULL;
> - if (t && t->release)
> + if (t && t->release) {
> + const char *k_name = kobj->k_name;
> + kobj->k_name = NULL;
> t->release(kobj);
> - else
> + kfree(k_name);
> + } else
> pr_debug("kobject '%s' does not have a release() function, "
> "if this is not a directory kobject, it is broken "
> "and must be fixed.\n",
> - k_name);
> - kfree(k_name);
> + kobj->k_name);
> if (s)
> kset_put(s);
> kobject_put(parent);
next prev parent reply other threads:[~2007-10-05 11:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-05 8:55 BUG on unloading the fuse module Fengguang Wu
2007-10-05 8:55 ` Fengguang Wu
2007-10-05 9:37 ` Miklos Szeredi
2007-10-05 10:44 ` Fengguang Wu
2007-10-05 10:44 ` Fengguang Wu
2007-10-05 10:54 ` Miklos Szeredi
2007-10-05 11:01 ` Fengguang Wu [this message]
2007-10-05 11:01 ` Fengguang Wu
2007-10-05 11:33 ` Miklos Szeredi
2007-10-05 11:35 ` Fengguang Wu
2007-10-05 11:35 ` Fengguang Wu
2007-10-05 15:22 ` Greg KH
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=391582087.27602@ustc.edu.cn \
--to=wfg@mail.ustc.edu.cn \
--cc=akpm@linux-foundation.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.