From: Maneesh Soni <maneesh@in.ibm.com>
To: Richard A Nelson <cowboy@debian.org>
Cc: Stephen Hemminger <shemminger@osdl.org>,
linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>
Subject: Re: 2.6.6-mm1 Oops with dummy network device (sysfs related?)
Date: Wed, 6 Oct 2004 15:26:02 +0530 [thread overview]
Message-ID: <20041006095602.GB2004@in.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0405101909450.31018@onpx40.onqynaqf.bet>
On Mon, May 10, 2004 at 11:35:00PM +0000, Richard A Nelson wrote:
> On Mon, 10 May 2004, Stephen Hemminger wrote:
>
> > It would be easier to know what is wrong, if you said what you
> > did that started the problem. Looks like ifrename or something
> > like that.
>
> hrm, been trying to track that down (several oopses later...)
>
> the modprobe dummy worked ok (and is seen in the log)
> the next command is 'ip link set name ipsec0 dev dummy0'
> and I've yet to get passed that
ok it is sysfs related and because of the backing store patches from me.
And here is the fix. Hope this solves your problem.
Thanks
Maneesh
o Fix sysfs_rename_dir(). The sysfs_lookup() does not hash
negative dentries so just hash it before calling d_move
fs/sysfs/dir.c | 1 +
1 files changed, 1 insertion(+)
diff -puN fs/sysfs/dir.c~sysfs-backing-store-sysfs_rename_dir-fix fs/sysfs/dir.c
--- linux-2.6.6-mm1/fs/sysfs/dir.c~sysfs-backing-store-sysfs_rename_dir-fix 2004-10-06 15:21:37.000000000 +0530
+++ linux-2.6.6-mm1-maneesh/fs/sysfs/dir.c 2004-10-06 15:22:03.000000000 +0530
@@ -314,6 +314,7 @@ void sysfs_rename_dir(struct kobject * k
new_dentry = sysfs_get_dentry(parent, new_name);
if (!IS_ERR(new_dentry)) {
if (!new_dentry->d_inode) {
+ d_add(new_dentry, NULL);
d_move(kobj->dentry, new_dentry);
kobject_set_name(kobj,new_name);
}
_
--
Maneesh Soni
Linux Technology Center,
IBM Software Lab, Bangalore, India
email: maneesh@in.ibm.com
Phone: 91-80-25044999 Fax: 91-80-25268553
T/L : 9243696
next prev parent reply other threads:[~2004-05-11 9:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-10 20:59 2.6.6-mm1 Oops with dummy network device (sysfs related?) Richard A Nelson
2004-05-10 21:18 ` Stephen Hemminger
2004-05-10 23:12 ` Richard A Nelson
2004-10-06 9:56 ` Maneesh Soni [this message]
2004-05-11 16:15 ` Valdis.Kletnieks
2004-05-11 1:06 ` Valdis.Kletnieks
2004-05-11 13:35 ` Valdis.Kletnieks
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=20041006095602.GB2004@in.ibm.com \
--to=maneesh@in.ibm.com \
--cc=akpm@osdl.org \
--cc=cowboy@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shemminger@osdl.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 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.