|
@@ -293,7 +293,7 @@ static inline void bond_set_active_slave(struct slave *slave)
|
|
{
|
|
{
|
|
if (slave->backup) {
|
|
if (slave->backup) {
|
|
slave->backup = 0;
|
|
slave->backup = 0;
|
|
- rtmsg_ifinfo(RTM_NEWLINK, slave->dev, 0, GFP_KERNEL);
|
|
|
|
|
|
+ rtmsg_ifinfo(RTM_NEWLINK, slave->dev, 0, GFP_ATOMIC);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -301,7 +301,7 @@ static inline void bond_set_backup_slave(struct slave *slave)
|
|
{
|
|
{
|
|
if (!slave->backup) {
|
|
if (!slave->backup) {
|
|
slave->backup = 1;
|
|
slave->backup = 1;
|
|
- rtmsg_ifinfo(RTM_NEWLINK, slave->dev, 0, GFP_KERNEL);
|
|
|
|
|
|
+ rtmsg_ifinfo(RTM_NEWLINK, slave->dev, 0, GFP_ATOMIC);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -313,7 +313,7 @@ static inline void bond_set_slave_state(struct slave *slave,
|
|
|
|
|
|
slave->backup = slave_state;
|
|
slave->backup = slave_state;
|
|
if (notify) {
|
|
if (notify) {
|
|
- rtmsg_ifinfo(RTM_NEWLINK, slave->dev, 0, GFP_KERNEL);
|
|
|
|
|
|
+ rtmsg_ifinfo(RTM_NEWLINK, slave->dev, 0, GFP_ATOMIC);
|
|
slave->should_notify = 0;
|
|
slave->should_notify = 0;
|
|
} else {
|
|
} else {
|
|
if (slave->should_notify)
|
|
if (slave->should_notify)
|
|
@@ -343,7 +343,7 @@ static inline void bond_slave_state_notify(struct bonding *bond)
|
|
|
|
|
|
bond_for_each_slave(bond, tmp, iter) {
|
|
bond_for_each_slave(bond, tmp, iter) {
|
|
if (tmp->should_notify) {
|
|
if (tmp->should_notify) {
|
|
- rtmsg_ifinfo(RTM_NEWLINK, tmp->dev, 0, GFP_KERNEL);
|
|
|
|
|
|
+ rtmsg_ifinfo(RTM_NEWLINK, tmp->dev, 0, GFP_ATOMIC);
|
|
tmp->should_notify = 0;
|
|
tmp->should_notify = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|