lockdep: fix false positive
Subsystems (2)
Bpqether is encapsulating AX.25 frames into ethernet frames. There is a virtual bpqether device paired with each ethernet devices, so it's normal to pass through dev_queue_xmit twice for each frame which triggers the locking detector.
--- drivers/net/hamradio/bpqether.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/net/hamradio/bpqether.c +7 -0
@@ -122,6 +122,12 @@ struct bpqdev {static LIST_HEAD (bpq_devices); +/* +* bpqether network devices are paired with ethernet devices below them, so +* form a special "super class" of normal ethernet devices; split their locks +* off into a separate class since they always nest. +*/ +static struct lock_class_key bpq_netdev_xmit_lock_key;/* ------------------------------------------------------------------------ */
@@ -528,6 +534,7 @@ static int bpq_new_device(struct net_dev err =register_netdevice (ndev);if (err) goto error; +lockdep_set_class (&ndev->_xmit_lock, &bpq_netdev_xmit_lock_key);/* List protected by RTNL */ list_add_rcu (&bpq->bpq_list, &bpq_devices);
From: Ralf Baechle <[email protected]>
Date: Mon, 10 Jul 2006 16:53:34 +0100
Quoted 6 lines
Bpqether is encapsulating AX.25 frames into ethernet frames. There is a virtual bpqether device paired with each ethernet devices, so it's normal to pass through
dev_queue_xmittwice for each frame which triggers the locking detector.Signed-off-by Ralf Baechle <[email protected]>
Applied, thanks Ralf.
Ingo Molnar
Acked-byQuoted 6 lines · Ralf Baechle
Bpqether is encapsulating AX.25 frames into ethernet frames. There is a virtual bpqether device paired with each ethernet devices, so it's normal to pass through
dev_queue_xmittwice for each frame which triggers the locking detector.Signed-off-by Ralf Baechle <[email protected]>
thanks!
Ingo