aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/arcmsr
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-01-24 08:57:28 -0500
committerJames Bottomley <James.Bottomley@suse.de>2011-02-12 11:31:02 -0500
commita684b8da35a429a246ec2a91e2742bdff5209709 (patch)
tree656a47c18b4c8d8f138175702a33846a5d3194e2 /drivers/scsi/arcmsr
parent75c65a5edaa8b815c1428314eaf696788f1ebbdb (diff)
[SCSI] remove flush_scheduled_work() usages
Simple conversions to drop flush_scheduled_work() usages in drivers/scsi. More involved ones will be done in separate patches. * NCR5380, megaraid_sas: cancel_delayed_work() + flush_scheduled_work() -> cancel_delayed_work_sync(). * mpt2sas_scsih: drop unnecessary flush_scheduled_work(). * arcmsr_hba, ipr, pmcraid: flush the used work explicitly instead of using flush_scheduled_work(). Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/arcmsr')
-rw-r--r--drivers/scsi/arcmsr/arcmsr_hba.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
index 1cadcd6b7da6..d6d17a1a41df 100644
--- a/drivers/scsi/arcmsr/arcmsr_hba.c
+++ b/drivers/scsi/arcmsr/arcmsr_hba.c
@@ -1022,7 +1022,7 @@ static void arcmsr_remove(struct pci_dev *pdev)
1022 int poll_count = 0; 1022 int poll_count = 0;
1023 arcmsr_free_sysfs_attr(acb); 1023 arcmsr_free_sysfs_attr(acb);
1024 scsi_remove_host(host); 1024 scsi_remove_host(host);
1025 flush_scheduled_work(); 1025 flush_work_sync(&acb->arcmsr_do_message_isr_bh);
1026 del_timer_sync(&acb->eternal_timer); 1026 del_timer_sync(&acb->eternal_timer);
1027 arcmsr_disable_outbound_ints(acb); 1027 arcmsr_disable_outbound_ints(acb);
1028 arcmsr_stop_adapter_bgrb(acb); 1028 arcmsr_stop_adapter_bgrb(acb);
@@ -1068,7 +1068,7 @@ static void arcmsr_shutdown(struct pci_dev *pdev)
1068 (struct AdapterControlBlock *)host->hostdata; 1068 (struct AdapterControlBlock *)host->hostdata;
1069 del_timer_sync(&acb->eternal_timer); 1069 del_timer_sync(&acb->eternal_timer);
1070 arcmsr_disable_outbound_ints(acb); 1070 arcmsr_disable_outbound_ints(acb);
1071 flush_scheduled_work(); 1071 flush_work_sync(&acb->arcmsr_do_message_isr_bh);
1072 arcmsr_stop_adapter_bgrb(acb); 1072 arcmsr_stop_adapter_bgrb(acb);
1073 arcmsr_flush_adapter_cache(acb); 1073 arcmsr_flush_adapter_cache(acb);
1074} 1074}