diff options
-rw-r--r-- | drivers/ata/libata-core.c | 2 | ||||
-rw-r--r-- | drivers/ata/libata-sff.c | 2 | ||||
-rw-r--r-- | drivers/macintosh/rack-meter.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dvb-usb-remote.c | 2 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-input.c | 2 | ||||
-rw-r--r-- | drivers/net/chelsio/my3126.c | 2 | ||||
-rw-r--r-- | drivers/net/ibm_newemac/core.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_mac.c | 3 | ||||
-rw-r--r-- | drivers/power/ds2760_battery.c | 6 | ||||
-rw-r--r-- | drivers/power/intel_mid_battery.c | 6 | ||||
-rw-r--r-- | drivers/staging/pohmelfs/inode.c | 4 | ||||
-rw-r--r-- | drivers/usb/atm/cxacru.c | 2 | ||||
-rw-r--r-- | drivers/video/fb_defio.c | 2 | ||||
-rw-r--r-- | drivers/video/omap/lcd_mipid.c | 2 | ||||
-rw-r--r-- | fs/nfsd/nfs4state.c | 2 | ||||
-rw-r--r-- | fs/xfs/xfs_mru_cache.c | 2 | ||||
-rw-r--r-- | mm/slab.c | 2 | ||||
-rw-r--r-- | mm/vmstat.c | 2 | ||||
-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 |
22 files changed, 27 insertions, 32 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 7f77c67d267c..6669b44044fb 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -6122,7 +6122,7 @@ static void ata_port_detach(struct ata_port *ap) | |||
6122 | /* it better be dead now */ | 6122 | /* it better be dead now */ |
6123 | WARN_ON(!(ap->pflags & ATA_PFLAG_UNLOADED)); | 6123 | WARN_ON(!(ap->pflags & ATA_PFLAG_UNLOADED)); |
6124 | 6124 | ||
6125 | cancel_rearming_delayed_work(&ap->hotplug_task); | 6125 | cancel_delayed_work_sync(&ap->hotplug_task); |
6126 | 6126 | ||
6127 | skip_eh: | 6127 | skip_eh: |
6128 | if (ap->pmp_link) { | 6128 | if (ap->pmp_link) { |
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index d05387d1e14b..8660a70f164a 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -1320,7 +1320,7 @@ void ata_sff_flush_pio_task(struct ata_port *ap) | |||
1320 | { | 1320 | { |
1321 | DPRINTK("ENTER\n"); | 1321 | DPRINTK("ENTER\n"); |
1322 | 1322 | ||
1323 | cancel_rearming_delayed_work(&ap->sff_pio_task); | 1323 | cancel_delayed_work_sync(&ap->sff_pio_task); |
1324 | ap->hsm_task_state = HSM_ST_IDLE; | 1324 | ap->hsm_task_state = HSM_ST_IDLE; |
1325 | 1325 | ||
1326 | if (ata_msg_ctl(ap)) | 1326 | if (ata_msg_ctl(ap)) |
diff --git a/drivers/macintosh/rack-meter.c b/drivers/macintosh/rack-meter.c index 53cce3a5da23..39f660b2a60d 100644 --- a/drivers/macintosh/rack-meter.c +++ b/drivers/macintosh/rack-meter.c | |||
@@ -285,8 +285,8 @@ static void __devinit rackmeter_init_cpu_sniffer(struct rackmeter *rm) | |||
285 | 285 | ||
286 | static void __devexit rackmeter_stop_cpu_sniffer(struct rackmeter *rm) | 286 | static void __devexit rackmeter_stop_cpu_sniffer(struct rackmeter *rm) |
287 | { | 287 | { |
288 | cancel_rearming_delayed_work(&rm->cpu[0].sniffer); | 288 | cancel_delayed_work_sync(&rm->cpu[0].sniffer); |
289 | cancel_rearming_delayed_work(&rm->cpu[1].sniffer); | 289 | cancel_delayed_work_sync(&rm->cpu[1].sniffer); |
290 | } | 290 | } |
291 | 291 | ||
292 | static int __devinit rackmeter_setup(struct rackmeter *rm) | 292 | static int __devinit rackmeter_setup(struct rackmeter *rm) |
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-remote.c b/drivers/media/dvb/dvb-usb/dvb-usb-remote.c index b579fed3ab3f..0831469af69f 100644 --- a/drivers/media/dvb/dvb-usb/dvb-usb-remote.c +++ b/drivers/media/dvb/dvb-usb/dvb-usb-remote.c | |||
@@ -298,7 +298,7 @@ int dvb_usb_remote_init(struct dvb_usb_device *d) | |||
298 | int dvb_usb_remote_exit(struct dvb_usb_device *d) | 298 | int dvb_usb_remote_exit(struct dvb_usb_device *d) |
299 | { | 299 | { |
300 | if (d->state & DVB_USB_STATE_REMOTE) { | 300 | if (d->state & DVB_USB_STATE_REMOTE) { |
301 | cancel_rearming_delayed_work(&d->rc_query_work); | 301 | cancel_delayed_work_sync(&d->rc_query_work); |
302 | flush_scheduled_work(); | 302 | flush_scheduled_work(); |
303 | if (d->props.rc.mode == DVB_RC_LEGACY) | 303 | if (d->props.rc.mode == DVB_RC_LEGACY) |
304 | input_unregister_device(d->rc_input_dev); | 304 | input_unregister_device(d->rc_input_dev); |
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c index 6759cd5570dd..99403c720e3a 100644 --- a/drivers/media/video/em28xx/em28xx-input.c +++ b/drivers/media/video/em28xx/em28xx-input.c | |||
@@ -557,7 +557,7 @@ void em28xx_deregister_snapshot_button(struct em28xx *dev) | |||
557 | { | 557 | { |
558 | if (dev->sbutton_input_dev != NULL) { | 558 | if (dev->sbutton_input_dev != NULL) { |
559 | em28xx_info("Deregistering snapshot button\n"); | 559 | em28xx_info("Deregistering snapshot button\n"); |
560 | cancel_rearming_delayed_work(&dev->sbutton_query_work); | 560 | cancel_delayed_work_sync(&dev->sbutton_query_work); |
561 | input_unregister_device(dev->sbutton_input_dev); | 561 | input_unregister_device(dev->sbutton_input_dev); |
562 | dev->sbutton_input_dev = NULL; | 562 | dev->sbutton_input_dev = NULL; |
563 | } | 563 | } |
diff --git a/drivers/net/chelsio/my3126.c b/drivers/net/chelsio/my3126.c index 4c6028512d10..a683fd3bb624 100644 --- a/drivers/net/chelsio/my3126.c +++ b/drivers/net/chelsio/my3126.c | |||
@@ -22,7 +22,7 @@ static int my3126_interrupt_enable(struct cphy *cphy) | |||
22 | 22 | ||
23 | static int my3126_interrupt_disable(struct cphy *cphy) | 23 | static int my3126_interrupt_disable(struct cphy *cphy) |
24 | { | 24 | { |
25 | cancel_rearming_delayed_work(&cphy->phy_update); | 25 | cancel_delayed_work_sync(&cphy->phy_update); |
26 | return 0; | 26 | return 0; |
27 | } | 27 | } |
28 | 28 | ||
diff --git a/drivers/net/ibm_newemac/core.c b/drivers/net/ibm_newemac/core.c index 06bb9b799458..e209efaa01b9 100644 --- a/drivers/net/ibm_newemac/core.c +++ b/drivers/net/ibm_newemac/core.c | |||
@@ -1279,7 +1279,7 @@ static void emac_force_link_update(struct emac_instance *dev) | |||
1279 | netif_carrier_off(dev->ndev); | 1279 | netif_carrier_off(dev->ndev); |
1280 | smp_rmb(); | 1280 | smp_rmb(); |
1281 | if (dev->link_polling) { | 1281 | if (dev->link_polling) { |
1282 | cancel_rearming_delayed_work(&dev->link_work); | 1282 | cancel_delayed_work_sync(&dev->link_work); |
1283 | if (dev->link_polling) | 1283 | if (dev->link_polling) |
1284 | schedule_delayed_work(&dev->link_work, PHY_POLL_LINK_OFF); | 1284 | schedule_delayed_work(&dev->link_work, PHY_POLL_LINK_OFF); |
1285 | } | 1285 | } |
@@ -1294,7 +1294,7 @@ static int emac_close(struct net_device *ndev) | |||
1294 | 1294 | ||
1295 | if (dev->phy.address >= 0) { | 1295 | if (dev->phy.address >= 0) { |
1296 | dev->link_polling = 0; | 1296 | dev->link_polling = 0; |
1297 | cancel_rearming_delayed_work(&dev->link_work); | 1297 | cancel_delayed_work_sync(&dev->link_work); |
1298 | } | 1298 | } |
1299 | mutex_lock(&dev->link_lock); | 1299 | mutex_lock(&dev->link_lock); |
1300 | emac_netif_stop(dev); | 1300 | emac_netif_stop(dev); |
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index 43307bd42a69..6107304cb94c 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
@@ -1207,7 +1207,6 @@ static void housekeeping_enable(struct zd_mac *mac) | |||
1207 | static void housekeeping_disable(struct zd_mac *mac) | 1207 | static void housekeeping_disable(struct zd_mac *mac) |
1208 | { | 1208 | { |
1209 | dev_dbg_f(zd_mac_dev(mac), "\n"); | 1209 | dev_dbg_f(zd_mac_dev(mac), "\n"); |
1210 | cancel_rearming_delayed_workqueue(zd_workqueue, | 1210 | cancel_delayed_work_sync(&mac->housekeeping.link_led_work); |
1211 | &mac->housekeeping.link_led_work); | ||
1212 | zd_chip_control_leds(&mac->chip, ZD_LED_OFF); | 1211 | zd_chip_control_leds(&mac->chip, ZD_LED_OFF); |
1213 | } | 1212 | } |
diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c index b3c01c16a164..e7f89785beef 100644 --- a/drivers/power/ds2760_battery.c +++ b/drivers/power/ds2760_battery.c | |||
@@ -580,10 +580,8 @@ static int ds2760_battery_remove(struct platform_device *pdev) | |||
580 | { | 580 | { |
581 | struct ds2760_device_info *di = platform_get_drvdata(pdev); | 581 | struct ds2760_device_info *di = platform_get_drvdata(pdev); |
582 | 582 | ||
583 | cancel_rearming_delayed_workqueue(di->monitor_wqueue, | 583 | cancel_delayed_work_sync(&di->monitor_work); |
584 | &di->monitor_work); | 584 | cancel_delayed_work_sync(&di->set_charged_work); |
585 | cancel_rearming_delayed_workqueue(di->monitor_wqueue, | ||
586 | &di->set_charged_work); | ||
587 | destroy_workqueue(di->monitor_wqueue); | 585 | destroy_workqueue(di->monitor_wqueue); |
588 | power_supply_unregister(&di->bat); | 586 | power_supply_unregister(&di->bat); |
589 | kfree(di); | 587 | kfree(di); |
diff --git a/drivers/power/intel_mid_battery.c b/drivers/power/intel_mid_battery.c index 2a10cd361181..36cf402c0677 100644 --- a/drivers/power/intel_mid_battery.c +++ b/drivers/power/intel_mid_battery.c | |||
@@ -730,8 +730,7 @@ static __devinit int probe(int irq, struct device *dev) | |||
730 | power_reg_failed_1: | 730 | power_reg_failed_1: |
731 | power_supply_unregister(&pbi->batt); | 731 | power_supply_unregister(&pbi->batt); |
732 | power_reg_failed: | 732 | power_reg_failed: |
733 | cancel_rearming_delayed_workqueue(pbi->monitor_wqueue, | 733 | cancel_delayed_work_sync(&pbi->monitor_battery); |
734 | &pbi->monitor_battery); | ||
735 | requestirq_failed: | 734 | requestirq_failed: |
736 | destroy_workqueue(pbi->monitor_wqueue); | 735 | destroy_workqueue(pbi->monitor_wqueue); |
737 | wqueue_failed: | 736 | wqueue_failed: |
@@ -760,8 +759,7 @@ static int __devexit platform_pmic_battery_remove(struct platform_device *pdev) | |||
760 | struct pmic_power_module_info *pbi = dev_get_drvdata(&pdev->dev); | 759 | struct pmic_power_module_info *pbi = dev_get_drvdata(&pdev->dev); |
761 | 760 | ||
762 | free_irq(pbi->irq, pbi); | 761 | free_irq(pbi->irq, pbi); |
763 | cancel_rearming_delayed_workqueue(pbi->monitor_wqueue, | 762 | cancel_delayed_work_sync(&pbi->monitor_battery); |
764 | &pbi->monitor_battery); | ||
765 | destroy_workqueue(pbi->monitor_wqueue); | 763 | destroy_workqueue(pbi->monitor_wqueue); |
766 | 764 | ||
767 | power_supply_unregister(&pbi->usb); | 765 | power_supply_unregister(&pbi->usb); |
diff --git a/drivers/staging/pohmelfs/inode.c b/drivers/staging/pohmelfs/inode.c index 61685ccceda8..d4a1f204b9d5 100644 --- a/drivers/staging/pohmelfs/inode.c +++ b/drivers/staging/pohmelfs/inode.c | |||
@@ -1318,8 +1318,8 @@ static void pohmelfs_put_super(struct super_block *sb) | |||
1318 | } | 1318 | } |
1319 | 1319 | ||
1320 | psb->trans_scan_timeout = psb->drop_scan_timeout = 0; | 1320 | psb->trans_scan_timeout = psb->drop_scan_timeout = 0; |
1321 | cancel_rearming_delayed_work(&psb->dwork); | 1321 | cancel_delayed_work_sync(&psb->dwork); |
1322 | cancel_rearming_delayed_work(&psb->drop_dwork); | 1322 | cancel_delayed_work_sync(&psb->drop_dwork); |
1323 | flush_scheduled_work(); | 1323 | flush_scheduled_work(); |
1324 | 1324 | ||
1325 | dprintk("%s: stopped workqueues.\n", __func__); | 1325 | dprintk("%s: stopped workqueues.\n", __func__); |
diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c index f383cb42b1d7..a845f8b8382f 100644 --- a/drivers/usb/atm/cxacru.c +++ b/drivers/usb/atm/cxacru.c | |||
@@ -1247,7 +1247,7 @@ static void cxacru_unbind(struct usbatm_data *usbatm_instance, | |||
1247 | mutex_unlock(&instance->poll_state_serialize); | 1247 | mutex_unlock(&instance->poll_state_serialize); |
1248 | 1248 | ||
1249 | if (is_polling) | 1249 | if (is_polling) |
1250 | cancel_rearming_delayed_work(&instance->poll_work); | 1250 | cancel_delayed_work_sync(&instance->poll_work); |
1251 | 1251 | ||
1252 | usb_kill_urb(instance->snd_urb); | 1252 | usb_kill_urb(instance->snd_urb); |
1253 | usb_kill_urb(instance->rcv_urb); | 1253 | usb_kill_urb(instance->rcv_urb); |
diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c index 6b93ef93cb12..804000183c5e 100644 --- a/drivers/video/fb_defio.c +++ b/drivers/video/fb_defio.c | |||
@@ -75,7 +75,7 @@ int fb_deferred_io_fsync(struct file *file, int datasync) | |||
75 | return 0; | 75 | return 0; |
76 | 76 | ||
77 | /* Kill off the delayed work */ | 77 | /* Kill off the delayed work */ |
78 | cancel_rearming_delayed_work(&info->deferred_work); | 78 | cancel_delayed_work_sync(&info->deferred_work); |
79 | 79 | ||
80 | /* Run it immediately */ | 80 | /* Run it immediately */ |
81 | return schedule_delayed_work(&info->deferred_work, 0); | 81 | return schedule_delayed_work(&info->deferred_work, 0); |
diff --git a/drivers/video/omap/lcd_mipid.c b/drivers/video/omap/lcd_mipid.c index 64dcc7439c99..90e3bdd1b7ab 100644 --- a/drivers/video/omap/lcd_mipid.c +++ b/drivers/video/omap/lcd_mipid.c | |||
@@ -396,7 +396,7 @@ static void mipid_esd_start_check(struct mipid_device *md) | |||
396 | static void mipid_esd_stop_check(struct mipid_device *md) | 396 | static void mipid_esd_stop_check(struct mipid_device *md) |
397 | { | 397 | { |
398 | if (md->esd_check != NULL) | 398 | if (md->esd_check != NULL) |
399 | cancel_rearming_delayed_workqueue(md->esd_wq, &md->esd_work); | 399 | cancel_delayed_work_sync(&md->esd_work); |
400 | } | 400 | } |
401 | 401 | ||
402 | static void mipid_esd_work(struct work_struct *work) | 402 | static void mipid_esd_work(struct work_struct *work) |
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 116cab970e0f..fbd18c3074bb 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -4336,7 +4336,7 @@ __nfs4_state_shutdown(void) | |||
4336 | void | 4336 | void |
4337 | nfs4_state_shutdown(void) | 4337 | nfs4_state_shutdown(void) |
4338 | { | 4338 | { |
4339 | cancel_rearming_delayed_workqueue(laundry_wq, &laundromat_work); | 4339 | cancel_delayed_work_sync(&laundromat_work); |
4340 | destroy_workqueue(laundry_wq); | 4340 | destroy_workqueue(laundry_wq); |
4341 | locks_end_grace(&nfsd4_manager); | 4341 | locks_end_grace(&nfsd4_manager); |
4342 | nfs4_lock_state(); | 4342 | nfs4_lock_state(); |
diff --git a/fs/xfs/xfs_mru_cache.c b/fs/xfs/xfs_mru_cache.c index 45ce15dc5b2b..edfa178bafb6 100644 --- a/fs/xfs/xfs_mru_cache.c +++ b/fs/xfs/xfs_mru_cache.c | |||
@@ -408,7 +408,7 @@ xfs_mru_cache_flush( | |||
408 | spin_lock(&mru->lock); | 408 | spin_lock(&mru->lock); |
409 | if (mru->queued) { | 409 | if (mru->queued) { |
410 | spin_unlock(&mru->lock); | 410 | spin_unlock(&mru->lock); |
411 | cancel_rearming_delayed_workqueue(xfs_mru_reap_wq, &mru->work); | 411 | cancel_delayed_work_sync(&mru->work); |
412 | spin_lock(&mru->lock); | 412 | spin_lock(&mru->lock); |
413 | } | 413 | } |
414 | 414 | ||
@@ -1293,7 +1293,7 @@ static int __cpuinit cpuup_callback(struct notifier_block *nfb, | |||
1293 | * anything expensive but will only modify reap_work | 1293 | * anything expensive but will only modify reap_work |
1294 | * and reschedule the timer. | 1294 | * and reschedule the timer. |
1295 | */ | 1295 | */ |
1296 | cancel_rearming_delayed_work(&per_cpu(slab_reap_work, cpu)); | 1296 | cancel_delayed_work_sync(&per_cpu(slab_reap_work, cpu)); |
1297 | /* Now the cache_reaper is guaranteed to be not running. */ | 1297 | /* Now the cache_reaper is guaranteed to be not running. */ |
1298 | per_cpu(slab_reap_work, cpu).work.func = NULL; | 1298 | per_cpu(slab_reap_work, cpu).work.func = NULL; |
1299 | break; | 1299 | break; |
diff --git a/mm/vmstat.c b/mm/vmstat.c index 42eac4d33216..d1f3cb63a8a9 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -1033,7 +1033,7 @@ static int __cpuinit vmstat_cpuup_callback(struct notifier_block *nfb, | |||
1033 | break; | 1033 | break; |
1034 | case CPU_DOWN_PREPARE: | 1034 | case CPU_DOWN_PREPARE: |
1035 | case CPU_DOWN_PREPARE_FROZEN: | 1035 | case CPU_DOWN_PREPARE_FROZEN: |
1036 | cancel_rearming_delayed_work(&per_cpu(vmstat_work, cpu)); | 1036 | cancel_delayed_work_sync(&per_cpu(vmstat_work, cpu)); |
1037 | per_cpu(vmstat_work, cpu).work.func = NULL; | 1037 | per_cpu(vmstat_work, cpu).work.func = NULL; |
1038 | break; | 1038 | break; |
1039 | case CPU_DOWN_FAILED: | 1039 | case CPU_DOWN_FAILED: |
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); |