Skip to content

Commit

Permalink
net/neighbour: cancel_delayed_work() + flush_scheduled_work() -> canc…
Browse files Browse the repository at this point in the history
…el_delayed_work_sync()

flush_scheduled_work() is going away.  Prepare for it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tejun Heo authored and David S. Miller committed Oct 21, 2010
1 parent be8c648 commit a5c30b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/core/neighbour.c
Original file line number Diff line number Diff line change
Expand Up @@ -1588,8 +1588,7 @@ int neigh_table_clear(struct neigh_table *tbl)
struct neigh_table **tp;

/* It is not clean... Fix it to unload IPv6 module safely */
cancel_delayed_work(&tbl->gc_work);
flush_scheduled_work();
cancel_delayed_work_sync(&tbl->gc_work);
del_timer_sync(&tbl->proxy_timer);
pneigh_queue_purge(&tbl->proxy_queue);
neigh_ifdown(tbl, NULL);
Expand Down

0 comments on commit a5c30b3

Please sign in to comment.