linux/drivers/net/bonding
Veaceslav Falico 23fa5c2caa bonding: destroy proc directory only after all bonds are gone
Currently we might arrive to bond_net_exit() with some bonds left (that
were created while the module is unloading). We take care of that by
destroying sysfs (the last possibility to add new bonds) and then
destroying all the remaining bonds.

However, we destroy the /proc/net/bonding directory before destroying those
last bonds, and get a warning that we're trying to destroy a non-empty
proc directory (containing /proc/net/bonding/bondX).

Fix this by moving bond_destroy_proc_dir() after all the bonds are
destroyed, so that we're sure that no bonds exist.

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-07-17 16:33:27 -07:00
..
bond_3ad.c bonding: remove pr_fmt from bond_3ad.c 2014-07-15 23:15:58 -07:00
bond_3ad.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-02-19 01:24:22 -05:00
bond_alb.c bonding: Do not try to send packets over dead link in TLB mode. 2014-07-16 23:35:35 -07:00
bond_alb.h bonding: Do not try to send packets over dead link in TLB mode. 2014-07-16 23:35:35 -07:00
bond_debugfs.c bonding: convert bond_debugfs.c to use netdev_printk instead of pr_ 2014-07-15 23:15:58 -07:00
bond_main.c bonding: destroy proc directory only after all bonds are gone 2014-07-17 16:33:27 -07:00
bond_netlink.c bonding: bonding: remove pr_fmt from bond_netlink.c 2014-07-15 23:15:59 -07:00
bond_options.c bonding: remove pr_fmt from bond_options.c 2014-07-15 23:16:06 -07:00
bond_options.h bonding: make a generic sysfs option store and fix comments 2014-05-09 16:12:51 -04:00
bond_procfs.c bonding: convert bond_procfs.c to use netdev_printk instead of pr_ 2014-07-15 23:15:59 -07:00
bond_sysfs_slave.c bonding: create a macro for bond mode and use it 2014-05-16 16:34:32 -04:00
bond_sysfs.c bonding: use rcu_access_pointer() in bonding_show_mii_status() 2014-07-15 17:49:41 -07:00
bonding.h bonding: Do not try to send packets over dead link in TLB mode. 2014-07-16 23:35:35 -07:00
Makefile bonding: add sysfs /slave dir for bond slave devices. 2014-01-17 18:51:58 -08:00