Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352783
b: refs/heads/master
c: b59340c
h: refs/heads/master
i:
  352781: b45a1a0
  352779: fd7dc90
  352775: 2df9e54
  352767: 586b3a9
v: v3
  • Loading branch information
nikolay@redhat.com authored and David S. Miller committed Feb 19, 2013
1 parent 2e5f863 commit ea81434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ccae0e50c16a7f7adb029c169147400d1ce9f703
refs/heads/master: b59340c2c0508d280f10658ad662fa56a39c74c2
6 changes: 4 additions & 2 deletions trunk/drivers/net/bonding/bond_3ad.c
Original file line number Diff line number Diff line change
Expand Up @@ -2494,11 +2494,13 @@ void bond_3ad_update_lacp_rate(struct bonding *bond)
struct port *port = NULL;
int lacp_fast;

read_lock(&bond->lock);
write_lock_bh(&bond->lock);
lacp_fast = bond->params.lacp_fast;

bond_for_each_slave(bond, slave, i) {
port = &(SLAVE_AD_INFO(slave).port);
if (port->slave == NULL)
continue;
__get_state_machine_lock(port);
if (lacp_fast)
port->actor_oper_port_state |= AD_STATE_LACP_TIMEOUT;
Expand All @@ -2507,5 +2509,5 @@ void bond_3ad_update_lacp_rate(struct bonding *bond)
__release_state_machine_lock(port);
}

read_unlock(&bond->lock);
write_unlock_bh(&bond->lock);
}

0 comments on commit ea81434

Please sign in to comment.