Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753866AbZFIPdU (ORCPT ); Tue, 9 Jun 2009 11:33:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752216AbZFIPdJ (ORCPT ); Tue, 9 Jun 2009 11:33:09 -0400 Received: from stinky.trash.net ([213.144.137.162]:32899 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990AbZFIPdI (ORCPT ); Tue, 9 Jun 2009 11:33:08 -0400 Message-ID: <4A2E80B3.6010600@trash.net> Date: Tue, 09 Jun 2009 17:33:07 +0200 From: Patrick McHardy User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Stephen Hemminger CC: Arnd Bergmann , Jay Vosburgh , "David S. Miller" , bonding-devel@lists.sf.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: BUG: bonding module can only be loaded once References: <20090608151127.70146505@nehalam> <200906091406.45463.arnd@arndb.de> <20090609080232.45f81833@nehalam> In-Reply-To: <20090609080232.45f81833@nehalam> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1315 Lines: 31 Stephen Hemminger wrote: >> --- a/drivers/net/bonding/bond_main.c >> +++ b/drivers/net/bonding/bond_main.c >> @@ -5203,7 +5203,7 @@ static int __init bonding_init(void) >> >> res = bond_create_sysfs(); >> if (res) >> - goto err; >> + pr_info("Loading bonding module without sysfs interface\n"); >> >> register_netdevice_notifier(&bond_netdev_notifier); >> register_inetaddr_notifier(&bond_inetaddr_notifier); > > That only makes it limp along, and there still are warnings. > The point is that who ever added the WARN() in proc and sysfs, effectively > broke a bonding usage model. It did already dump the stack before that change, didn't it? In any case, this is not the first time this has been broken and the fundamental reason is in my opinion that the bonding interface is broken to begin with. The module aliasing thing is complete crap and should have been phased out long ago. At this point its probably not worth anymore to migrate people to the sysfs interface though, the best thing would be to add an rtnl_link interface and phase out both. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/