diff options
author | Veaceslav Falico <vfalico@redhat.com> | 2013-09-25 09:20:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-26 16:02:06 -0400 |
commit | 4087df87b868cef0dd19a9409b40fb9415503552 (patch) | |
tree | 48c9f33c44dd607dcabba0f934cc67a454181d22 /drivers/regulator/mc13xxx.h | |
parent | 77140d2951432487d012dbcdcf124168eafc49ca (diff) |
bonding: rework bond_ab_arp_probe() to use bond_for_each_slave()
Currently it uses the hard-to-rcuify bond_for_each_slave_from(), and also
it doesn't check every slave for disrepencies between the actual
IS_UP(slave) and the slave->link == BOND_LINK_UP, but only till we find the
next suitable slave.
Fix this by using bond_for_each_slave() and storing the first good slave in
*before till we find the current_arp_slave, after that we store the first good
slave in new_slave. If new_slave is empty - use the slave stored in before,
and if it's also empty - then we didn't find any suitable slave.
Also, in the meanwhile, check for each slave status.
CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/regulator/mc13xxx.h')
0 files changed, 0 insertions, 0 deletions