netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 net-next 0/5] net: better lockdep annotations
@ 2016-06-09 14:45 Eric Dumazet
  2016-06-09 14:45 ` [PATCH v3 net-next 1/5] net: sched: fix qdisc->running " Eric Dumazet
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Eric Dumazet @ 2016-06-09 14:45 UTC (permalink / raw)
  To: David S . Miller; +Cc: netdev, Eric Dumazet, David Ahern, Eric Dumazet

Introduction of qdisc->running seqcount added lockdep false positives.

While chasing the bug, it came to me that we had a lot of copies of the
same stuff in virtual drivers.

This patch series has the qdisc->running fix (considers that a trylock
is attempted in lockdep terminology), and adds a generic helper so
that we no longer have to patch many virtual drivers when a new per-device
or per-qdisc lock is added.

Thanks to David Ahern for reporting the issue and testing my patches :)


Eric Dumazet (5):
  net: sched: fix qdisc->running lockdep annotations
  net: add netdev_lockdep_set_classes() helper
  net: vrf: call netdev_lockdep_set_classes()
  net: macvlan: call netdev_lockdep_set_classes()
  net: ipvlan: call netdev_lockdep_set_classes()

 drivers/net/bonding/bond_main.c  | 24 +-----------------------
 drivers/net/ipvlan/ipvlan_main.c | 22 +---------------------
 drivers/net/macvlan.c            | 11 +----------
 drivers/net/ppp/ppp_generic.c    |  6 +-----
 drivers/net/team/team.c          | 21 +--------------------
 drivers/net/vrf.c                |  2 +-
 include/linux/netdevice.h        | 17 +++++++++++++++++
 include/net/sch_generic.h        |  6 +++++-
 net/bluetooth/6lowpan.c          | 15 +--------------
 net/ieee802154/6lowpan/core.c    | 16 +---------------
 net/l2tp/l2tp_eth.c              |  6 +-----
 net/sched/sch_generic.c          |  4 ++--
 12 files changed, 33 insertions(+), 117 deletions(-)

-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-06-09 20:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-09 14:45 [PATCH v3 net-next 0/5] net: better lockdep annotations Eric Dumazet
2016-06-09 14:45 ` [PATCH v3 net-next 1/5] net: sched: fix qdisc->running " Eric Dumazet
2016-06-09 14:45 ` [PATCH v3 net-next 2/5] net: add netdev_lockdep_set_classes() helper Eric Dumazet
2016-06-09 14:45 ` [PATCH v3 net-next 3/5] net: vrf: call netdev_lockdep_set_classes() Eric Dumazet
2016-06-09 15:05   ` David Ahern
2016-06-09 14:45 ` [PATCH v3 net-next 4/5] net: macvlan: " Eric Dumazet
2016-06-09 14:45 ` [PATCH v3 net-next 5/5] net: ipvlan: " Eric Dumazet
2016-06-09 20:29 ` [PATCH v3 net-next 0/5] net: better lockdep annotations David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).