diff options
Diffstat (limited to 'drivers/net/bonding/bond_alb.c')
-rw-r--r-- | drivers/net/bonding/bond_alb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c index aea2217c56eb..eb320c3cbdde 100644 --- a/drivers/net/bonding/bond_alb.c +++ b/drivers/net/bonding/bond_alb.c | |||
@@ -1375,8 +1375,10 @@ out: | |||
1375 | return 0; | 1375 | return 0; |
1376 | } | 1376 | } |
1377 | 1377 | ||
1378 | void bond_alb_monitor(struct bonding *bond) | 1378 | void bond_alb_monitor(struct work_struct *work) |
1379 | { | 1379 | { |
1380 | struct bonding *bond = container_of(work, struct bonding, | ||
1381 | alb_work.work); | ||
1380 | struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond)); | 1382 | struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond)); |
1381 | struct slave *slave; | 1383 | struct slave *slave; |
1382 | int i; | 1384 | int i; |
@@ -1479,7 +1481,7 @@ void bond_alb_monitor(struct bonding *bond) | |||
1479 | } | 1481 | } |
1480 | 1482 | ||
1481 | re_arm: | 1483 | re_arm: |
1482 | mod_timer(&(bond_info->alb_timer), jiffies + alb_delta_in_ticks); | 1484 | queue_delayed_work(bond->wq, &bond->alb_work, alb_delta_in_ticks); |
1483 | out: | 1485 | out: |
1484 | read_unlock(&bond->lock); | 1486 | read_unlock(&bond->lock); |
1485 | } | 1487 | } |