[PATCH] bonding: lockdep annotation
[deliverable/linux.git] / drivers / net / bonding / bond_main.c
index c0bbddae4ec41ef998d38f17a0a0c4ec8bd28a54..17a461152d39884157e5e138c71b7ed236fc5427 100644 (file)
@@ -4692,6 +4692,8 @@ static int bond_check_params(struct bond_params *params)
        return 0;
 }
 
+static struct lock_class_key bonding_netdev_xmit_lock_key;
+
 /* Create a new bond based on the specified name and bonding parameters.
  * Caller must NOT hold rtnl_lock; we need to release it here before we
  * set up our sysfs entries.
@@ -4727,6 +4729,9 @@ int bond_create(char *name, struct bond_params *params, struct bonding **newbond
        if (res < 0) {
                goto out_bond;
        }
+
+       lockdep_set_class(&bond_dev->_xmit_lock, &bonding_netdev_xmit_lock_key);
+
        if (newbond)
                *newbond = bond_dev->priv;
 
This page took 0.100727 seconds and 5 git commands to generate.