Skip to content

Commit

Permalink
be2net: Use cancel_delayed_work_sync instead of cancel_delayed_work()
Browse files Browse the repository at this point in the history
Use cancel_delayed_work_sycn instead of cancel_delayed_work() to reliably kill be_worker() as it rearms itself.

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sathya Perla authored and David S. Miller committed Jun 11, 2009
1 parent c0feed8 commit b305be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ static int be_close(struct net_device *netdev)
struct be_eq_obj *tx_eq = &adapter->tx_eq;
int vec;

cancel_delayed_work(&adapter->work);
cancel_delayed_work_sync(&adapter->work);

netif_stop_queue(netdev);
netif_carrier_off(netdev);
Expand Down

0 comments on commit b305be7

Please sign in to comment.