Skip to contentSkip to conversation

arcmsr: replace calling flush_scheduled_work by flush_work

PATCH ching 1 participant 1 message May 15, 2014 SCSI

lore
Share & tools
lore

ching

author
#0 lore raw

From: Ching<[email protected]>

This is a new patch v1.2 18/16 after patch v1.2 17/16.
To prevent flushing entire workqueue, replace flush_scheduled_work by flush_work.

---

drivers/scsi/arcmsr/arcmsr_hba.c +1 -1
diff -uprN a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
@@ -845,7 +845,7 @@ static int arcmsr_suspend(struct pci_dev
 	intmask_org = arcmsr_disable_outbound_ints(acb);
 	arcmsr_free_irq(pdev, acb);
 	del_timer_sync(&acb->eternal_timer);
-	flush_scheduled_work();
+	flush_work(&acb->arcmsr_do_message_isr_bh);
 	arcmsr_stop_adapter_bgrb(acb);
 	arcmsr_flush_adapter_cache(acb);
 	arcmsr_enable_outbound_ints(acb, intmask_org);