Skip to content

bonding workqueue and lock rework

Jay Vosburgh netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Convert bonding timers to workqueuesdrivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_3ad.h drivers/net/bonding/bond_alb.c +4 more+117 -1225 replies
2/6Convert balance-rr transmit to new lockingdrivers/net/bonding/bond_main.c drivers/net/bonding/bonding.h+13 -130 replies
3/6Convert miimon to new lockingdrivers/net/bonding/bond_main.c+51 -190 replies
4/6Convert locks to _bh, rework alb locking for new lockingdrivers/net/bonding/bond_alb.c drivers/net/bonding/bond_main.c+117 -300 replies
5/6Convert more locks to _bh, acquire rtnl, for new lockingdrivers/net/bonding/bond_alb.c drivers/net/bonding/bond_main.c drivers/net/bonding/bond_sysfs.c+29 -230 replies
6/6Acquire correct locks in alb for promisc changedrivers/net/bonding/bond_alb.c+10 -90 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/6] bonding workqueue and lock rework

Following are patches to update the locking used in the bonding
driver. This involves two basic changes: conversion from timers to workqueues for the various periodic monitor functions, and conversion of locking. These patches should resolve the majority of locking and might sleep related warnings that occur during certain operations.

The workqueue conversion is fairly straightforward, and
substitutes workqueue driven events for the existing timer driven events.

The locking changes are of two types: first, changes to resolve
deadlocks created by the conversion to workqueues, and second, changes to make the locking more correct, which generally involves holding RTNL and no other locks during specific operations. Some of the RTNL-related changes are fairly extensive, and involve either conditional locking or releasing and reacquiring locks in order to obey lock ordering constraints.

These changes were developed and extensively tested by Andy
Gospodarek <[email protected]> and myself over the last few months.

	Patches are relative to netdev-2.6#upstream.

	-J

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