]> Pileus Git - ~andy/linux/commitdiff
Merge branch 'bonding_rtnl'
authorDavid S. Miller <davem@davemloft.net>
Wed, 26 Feb 2014 21:03:06 +0000 (16:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Feb 2014 21:03:06 +0000 (16:03 -0500)
Ding Tianhong says:

====================
Fix RTNL: assertion failed at net/core/rtnetlink.c

The commit 1d3ee88ae0d
(bonding: add netlink attributes to slave link dev)
make the bond_set_active_slave() and bond_set_backup_slave()
use rtmsg_ifinfo to send slave's states and this functions
should be called in RTNL.

But the 902.3ad and ARP monitor did not hold the RTNL when calling
thses two functions, so fix them.

v1->v2: Add new micro to indicate that the notification should be send
        later, not never.
        And add a new patch to fix the same problem for ARP mode.

v2->v3: modify the bond_should_notify to should_notify_rtnl, it is more
reasonable, and use bool for should_notify_rtnl.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge