diff options
| author | Veaceslav Falico <[email protected]> | 2013-08-05 14:56:06 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-08-05 12:22:53 -0700 |
| commit | 7864a1adf7291993d74923fdd0a45459ce9da27e (patch) | |
| tree | 58513abad3228c4ebfe6b04a15b2a1d333846607 /tools/perf/scripts/python/syscall-counts.py | |
| parent | c193f3655d9b916a3b8cb685c6b4327397507b2f (diff) | |
bonding: remove locking from bond_set_rx_mode()
We're already protected by RTNL lock, so nothing can happen to bond/its
slaves, and thus the locking is useless here (both bond->lock and
bond->curr_active_slave).
Also, add ASSERT_RTNL() both to bond_set_rx_mode() and bond_hw_addr_swap()
to catch possible uses of it without RTNL locking.
This patch also saves us from a lockdep false-positive in
bond_set_rx_mode() vs bond_hw_addr_swap().
CC: Jay Vosburgh <[email protected]>
CC: Andy Gospodarek <[email protected]>
CC: Nikolay Aleksandrov <[email protected]>
Signed-off-by: Veaceslav Falico <[email protected]>
Signed-off-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions