diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-22 14:16:42 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-22 14:16:42 -0700 |
commit | cf508b1211dbe576778ff445ea1b4b0bcfa5c4ea (patch) | |
tree | 4774838c2db17db71662a625fea25def8823341a /net/netrom/af_netrom.c | |
parent | d29f749e252bcdbfe7a75a58f0ee92da16f127c0 (diff) | |
download | kernel_samsung_aries-cf508b1211dbe576778ff445ea1b4b0bcfa5c4ea.zip kernel_samsung_aries-cf508b1211dbe576778ff445ea1b4b0bcfa5c4ea.tar.gz kernel_samsung_aries-cf508b1211dbe576778ff445ea1b4b0bcfa5c4ea.tar.bz2 |
netdev: Handle ->addr_list_lock just like ->_xmit_lock for lockdep.
The new address list lock needs to handle the same device layering
issues that the _xmit_lock one does.
This integrates work done by Patrick McHardy.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom/af_netrom.c')
-rw-r--r-- | net/netrom/af_netrom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index fccc250..532e4fa 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c @@ -73,6 +73,7 @@ static const struct proto_ops nr_proto_ops; * separate class since they always nest. */ static struct lock_class_key nr_netdev_xmit_lock_key; +static struct lock_class_key nr_netdev_addr_lock_key; static void nr_set_lockdep_one(struct net_device *dev, struct netdev_queue *txq, @@ -83,6 +84,7 @@ static void nr_set_lockdep_one(struct net_device *dev, static void nr_set_lockdep_key(struct net_device *dev) { + lockdep_set_class(&dev->addr_list_lock, &nr_netdev_addr_lock_key); netdev_for_each_tx_queue(dev, nr_set_lockdep_one, NULL); } |