]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: 3ad: clean up curr_slave_lock usage
authorNikolay Aleksandrov <nikolay@redhat.com>
Thu, 11 Sep 2014 20:49:22 +0000 (22:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Sep 2014 20:29:06 +0000 (16:29 -0400)
commit9704a605932c46bc97cff2832be75ae0600f9fb6
treed81e5ce453b7c3f875f5110ddc315cf92612ccde
parenta6c4121edef9c9cd509b031d759a3887fed48ab9
bonding: 3ad: clean up curr_slave_lock usage

Remove the read_lock in bond_3ad_lacpdu_recv() since when the slave is
being released its rx_handler is removed before 3ad unbind, so even if
packets arrive, they won't see the slave in an inconsistent state.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c