]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2401b285adff765301f4807a349bb1d17a09f1fd
treedc6e143976647fb829bd75bdaeeffb9d8b201014
parentd12a2e5a331c99cd8568b6aaa8861f031d50ea34
parentab0a4d932d7ebed895e832ad26f1376c84bbae2e
Merge branch 'bonding_rtnl'

Ding Tianhong says:

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

The commit 89084f9fcf8
(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>