Skip to content

bonding: 7 fixes for 2.6.24

Jay Vosburgh netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7bonding: fix locking in sysfs primary/active selectiondrivers/net/bonding/bond_sysfs.c+10 -51 reply
2/7bonding: fix ASSERT_RTNL that produces spurious warningsdrivers/net/bonding/bond_alb.c+2 -30 replies
3/7bonding: fix locking during alb failover and slave removaldrivers/net/bonding/bond_alb.c drivers/net/bonding/bond_main.c+20 -120 replies
4/7bonding: release slaves when master removed via sysfsdrivers/net/bonding/bond_main.c+1 -30 replies
5/7bonding: Fix up parameter parsingdrivers/net/bonding/bond_main.c drivers/net/bonding/bond_sysfs.c drivers/net/bonding/bonding.h+23 -120 replies
6/7bonding: fix lock ordering for rtnl and bonding_rwsemdrivers/net/bonding/bond_main.c drivers/net/bonding/bond_sysfs.c+35 -271 reply
7/7bonding: Don't hold lock when calling rtnl_unlockdrivers/net/bonding/bond_main.c+3 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] bonding: 7 fixes for 2.6.24

Following are seven patches to fix locking problems,
silence locking-related warnings and resolve one recent regression in the current 2.6.24-rc.

The first three patches are reposts, the rest are new.

patch 1: fix locking in sysfs primary/active selection

Call core network functions with expected locks to
eliminate potential deadlock and silence warnings.

patch 2: fix ASSERT_RTNL that produces spurious warnings

Relocate ASSERT_RTNL to remove a false warning; after patch,
ASSERT is located in code that holds only RTNL (additional locks were causing the ASSERT to trip)

patch 3: fix locking during alb failover and slave removal

Fix all call paths into alb_fasten_mac_swap to hold only RTNL.
Eliminates potential deadlock and silences warnings.

patch 4: release slaves when master removed via sysfs

Insure that all slaves are removed when bond is destroyed via
sysfs.

patch 5: Fix up parameter parsing

Recent changes broke parameter parsing; this fixes things.

patch 6: Fix lock ordering for rtnl and bonding_rwsem

Resolves some lockdep warnings related to ordering between
rtnl and bonding_rwsem.

patch 7: Don't hold lock when calling rtnl_unlock

Since rtnl_unlock can sleep, don't hold any other locks when
calling it.

	Patches are against the current netdev-2.6#upstream branch.

	Please apply for 2.6.24.

	-J

---
-Jay Vosburgh, IBM Linux Technology Center, [email protected]