diff options
author | Tejun Heo <tj@kernel.org> | 2010-12-14 10:21:17 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-12-15 04:56:11 -0500 |
commit | afe2c511fb2d75f1515081ff1be15bd79cfe722d (patch) | |
tree | 28aa74e9e0c654a95bf3306101e10ac1d16919d1 /net | |
parent | 2d64672ed38721b7a3815009d79bfb90a1f34a17 (diff) |
workqueue: convert cancel_rearming_delayed_work[queue]() users to cancel_delayed_work_sync()
cancel_rearming_delayed_work[queue]() has been superceded by
cancel_delayed_work_sync() quite some time ago. Convert all the
in-kernel users. The conversions are completely equivalent and
trivial.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: "David S. Miller" <davem@davemloft.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Cc: Jeff Garzik <jgarzik@pobox.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: netdev@vger.kernel.org
Cc: Anton Vorontsov <cbou@mail.ru>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Neil Brown <neilb@suse.de>
Cc: Alex Elder <aelder@sgi.com>
Cc: xfs-masters@oss.sgi.com
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: netfilter-devel@vger.kernel.org
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: linux-nfs@vger.kernel.org
Diffstat (limited to 'net')
-rw-r--r-- | net/atm/lec.c | 2 | ||||
-rw-r--r-- | net/core/netpoll.c | 2 | ||||
-rw-r--r-- | net/netfilter/ipvs/ip_vs_ctl.c | 2 | ||||
-rw-r--r-- | net/sunrpc/xprtsock.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c index 181d70c73d70..96a4a4bd2304 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c | |||
@@ -1608,7 +1608,7 @@ static void lec_arp_destroy(struct lec_priv *priv) | |||
1608 | struct lec_arp_table *entry; | 1608 | struct lec_arp_table *entry; |
1609 | int i; | 1609 | int i; |
1610 | 1610 | ||
1611 | cancel_rearming_delayed_work(&priv->lec_arp_work); | 1611 | cancel_delayed_work_sync(&priv->lec_arp_work); |
1612 | 1612 | ||
1613 | /* | 1613 | /* |
1614 | * Remove all entries | 1614 | * Remove all entries |
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 4e98ffac3af0..d2910947a3ac 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -925,7 +925,7 @@ void __netpoll_cleanup(struct netpoll *np) | |||
925 | 925 | ||
926 | skb_queue_purge(&npinfo->arp_tx); | 926 | skb_queue_purge(&npinfo->arp_tx); |
927 | skb_queue_purge(&npinfo->txq); | 927 | skb_queue_purge(&npinfo->txq); |
928 | cancel_rearming_delayed_work(&npinfo->tx_work); | 928 | cancel_delayed_work_sync(&npinfo->tx_work); |
929 | 929 | ||
930 | /* clean after last, unfinished work */ | 930 | /* clean after last, unfinished work */ |
931 | __skb_queue_purge(&npinfo->txq); | 931 | __skb_queue_purge(&npinfo->txq); |
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index 5f5daa30b0af..96334e0fd04e 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c | |||
@@ -3432,7 +3432,7 @@ void ip_vs_control_cleanup(void) | |||
3432 | { | 3432 | { |
3433 | EnterFunction(2); | 3433 | EnterFunction(2); |
3434 | ip_vs_trash_cleanup(); | 3434 | ip_vs_trash_cleanup(); |
3435 | cancel_rearming_delayed_work(&defense_work); | 3435 | cancel_delayed_work_sync(&defense_work); |
3436 | cancel_work_sync(&defense_work.work); | 3436 | cancel_work_sync(&defense_work.work); |
3437 | ip_vs_kill_estimator(&ip_vs_stats); | 3437 | ip_vs_kill_estimator(&ip_vs_stats); |
3438 | unregister_sysctl_table(sysctl_header); | 3438 | unregister_sysctl_table(sysctl_header); |
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index dfcab5ac65af..96549df836ee 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -770,7 +770,7 @@ static void xs_destroy(struct rpc_xprt *xprt) | |||
770 | 770 | ||
771 | dprintk("RPC: xs_destroy xprt %p\n", xprt); | 771 | dprintk("RPC: xs_destroy xprt %p\n", xprt); |
772 | 772 | ||
773 | cancel_rearming_delayed_work(&transport->connect_worker); | 773 | cancel_delayed_work_sync(&transport->connect_worker); |
774 | 774 | ||
775 | xs_close(xprt); | 775 | xs_close(xprt); |
776 | xs_free_peer_addresses(xprt); | 776 | xs_free_peer_addresses(xprt); |