Skip to content

bonding: fix bonding interface bugs

Taehee Yoo netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Update headline from "fix bonding interface bugs" to "bonding: fix bonding interface bugs"
- Drop a patch("bonding: do not collect slave's stats")
- Add new patches
- ("net: export netdev_next_lower_dev_rcu()")
- ("bonding: fix lockdep warning in bond_get_stats()")

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bonding: add missing netdev_update_lockdep_key()drivers/net/bonding/bond_main.c drivers/net/bonding/bond_options.c+4 -00 replies
2/3net: export netdev_next_lower_dev_rcu()include/linux/netdevice.h net/core/dev.c+6 -70 replies
3/3bonding: fix lockdep warning in bond_get_stats()drivers/net/bonding/bond_main.c+50 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net v2 0/3] bonding: fix bonding interface bugs

This patchset fixes lockdep problem in bonding interface

1. The first patch is to add missing netdev_update_lockdep_key(). After bond_release(), netdev_update_lockdep_key() should be called. But both ioctl path and attribute path don't call netdev_update_lockdep_key().
This patch adds missing netdev_update_lockdep_key().

2. The second patch is to export netdev_next_lower_dev_rcu symbol. netdev_next_lower_dev_rcu() is useful to implement the function, which is to walk their all lower interfaces.
This patch is actually a preparing patch for the third patch.

3. The last patch is to fix lockdep waring in bond_get_stats(). The stats_lock uses a dynamic lockdep key.
So, after "nomaster" operation, updating the dynamic lockdep key routine is needed. but it doesn't
So, lockdep warning occurs.

Change log:
v1 -> v2:
- Update headline from "fix bonding interface bugs" to "bonding: fix bonding interface bugs"
- Drop a patch("bonding: do not collect slave's stats")
- Add new patches
- ("net: export netdev_next_lower_dev_rcu()")
- ("bonding: fix lockdep warning in bond_get_stats()")

Taehee Yoo (3):
bonding: add missing netdev_update_lockdep_key()
net: export netdev_next_lower_dev_rcu()
bonding: fix lockdep warning in bond_get_stats()

 drivers/net/bonding/bond_main.c    | 55 ++++++++++++++++++++++++++++--
 drivers/net/bonding/bond_options.c |  2 ++
 include/linux/netdevice.h          |  7 ++--
 net/core/dev.c                     |  6 ++--
 4 files changed, 60 insertions(+), 10 deletions(-)
Signature · 1 line
2.17.1