[PATCH] bonding: lockdep annotation

=============================================
[ INFO: possible recursive locking detected ]
2.6.17-1.2600.fc6 #1

Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by Peter Zijlstra and committed by Jeff Garzik 0daa2303 088406bc

+5
+5
drivers/net/bonding/bond_main.c
··· 4692 return 0; 4693 } 4694 4695 /* Create a new bond based on the specified name and bonding parameters. 4696 * Caller must NOT hold rtnl_lock; we need to release it here before we 4697 * set up our sysfs entries. ··· 4729 if (res < 0) { 4730 goto out_bond; 4731 } 4732 if (newbond) 4733 *newbond = bond_dev->priv; 4734
··· 4692 return 0; 4693 } 4694 4695 + static struct lock_class_key bonding_netdev_xmit_lock_key; 4696 + 4697 /* Create a new bond based on the specified name and bonding parameters. 4698 * Caller must NOT hold rtnl_lock; we need to release it here before we 4699 * set up our sysfs entries. ··· 4727 if (res < 0) { 4728 goto out_bond; 4729 } 4730 + 4731 + lockdep_set_class(&bond_dev->_xmit_lock, &bonding_netdev_xmit_lock_key); 4732 + 4733 if (newbond) 4734 *newbond = bond_dev->priv; 4735