|
@@ -1568,6 +1568,7 @@ static ssize_t bonding_store_slaves_active(struct device *d,
|
|
|
goto out;
|
|
|
}
|
|
|
|
|
|
+ read_lock(&bond->lock);
|
|
|
bond_for_each_slave(bond, slave, i) {
|
|
|
if (!bond_is_active_slave(slave)) {
|
|
|
if (new_value)
|
|
@@ -1576,6 +1577,7 @@ static ssize_t bonding_store_slaves_active(struct device *d,
|
|
|
slave->inactive = 1;
|
|
|
}
|
|
|
}
|
|
|
+ read_unlock(&bond->lock);
|
|
|
out:
|
|
|
return ret;
|
|
|
}
|