netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bonding: sysfs patch broke module renaming
@ 2007-01-19 13:33 Patrick McHardy
  2007-01-19 22:53 ` Jay Vosburgh
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2007-01-19 13:33 UTC (permalink / raw)
  To: mitch.a.williams; +Cc: linville, Linux Netdev List

The sysfs patch broke using multiple instances of the bonding module
through module renaming (modprobe -o). In recent kernels it fails
with -EEXIST when trying to add the bonding_masters file for the
second time, in older kernels (where sysfs_add_file didn't check
for duplicates) it will crash when unloading the modules.

I don't see a good way to fix it, can someone please look into this?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bonding: sysfs patch broke module renaming
  2007-01-19 13:33 bonding: sysfs patch broke module renaming Patrick McHardy
@ 2007-01-19 22:53 ` Jay Vosburgh
  0 siblings, 0 replies; 2+ messages in thread
From: Jay Vosburgh @ 2007-01-19 22:53 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: mitch.a.williams, linville, Linux Netdev List

Patrick McHardy <kaber@trash.net> wrote:

>The sysfs patch broke using multiple instances of the bonding module
>through module renaming (modprobe -o). In recent kernels it fails
>with -EEXIST when trying to add the bonding_masters file for the
>second time, in older kernels (where sysfs_add_file didn't check
>for duplicates) it will crash when unloading the modules.

	Ok, I see what the problem is; it's got to do with out device
creation was changed at some point for the sysfs stuff that broke the
multiple load logic.  I don't think it has to do with the sysfs_add_file
duplicate check business; I can see the error in how bond_create() is
called in the new (post-sysfs) stuff, although I haven't tracked it down
to a particular changeset.

	There'a also a separate error handling bug I see in
bond_create() that I don't even get to because it bails out first.

	Anyway, let me see what I can work out to fix this up.

	-J

---
	-Jay Vosburgh, IBM Linux Technology Center, fubar@us.ibm.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-19 22:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-19 13:33 bonding: sysfs patch broke module renaming Patrick McHardy
2007-01-19 22:53 ` Jay Vosburgh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).