diff options
author | Veaceslav Falico <[email protected]> | 2013-06-17 19:30:35 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2013-06-17 16:27:24 -0700 |
commit | cedb743f3e8db12cc76a706888792497953e93bb (patch) | |
tree | d3e356ab352b1cd99f18fd46219472ab20a01d69 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 72bb72b0d98847d22c6fae4e170121f3640f0f60 (diff) |
bonding: don't call alb_set_slave_mac_addr() while atomic
alb_set_slave_mac_addr() sets the mac address in alb mode via
dev_set_mac_address(), which might sleep. It's called from
alb_handle_addr_collision_on_attach() in atomic context (under
read_lock(bond->lock)), thus triggering a bug.
Fix this by moving the lock inside alb_handle_addr_collision_on_attach().
v1->v2:
As Nikolay Aleksandrov noticed, we can drop the bond->lock completely.
Also, use bond_slave_has_mac(), when possible.
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-by-pid.py')
0 files changed, 0 insertions, 0 deletions