From: nikolay@redhat.com Date: Mon, 2 Sep 2013 11:51:40 +0000 (+0200) Subject: bonding: simplify bond_3ad_update_lacp_rate and use RTNL for sync X-Git-Tag: v3.12-rc1~132^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c509316b5b33664b08b2a40d09534e0bd3c6b648;p=pandora-kernel.git bonding: simplify bond_3ad_update_lacp_rate and use RTNL for sync We can drop the use of bond->lock for mutual exclusion in bond_3ad_update_lacp_rate and use RTNL in the sysfs store function instead. This way we'll prevent races with mode change and interface up/down as well as simplify update_lacp_rate by removing the check for port->slave because it'll always be initialized (done while enslaving with RTNL). This change will also help in the future removal of reader bond->lock from bond_enslave. Signed-off-by: Nikolay Aleksandrov Signed-off-by: David S. Miller --- Reading git-diff-tree failed