On 6.2.2017 11:00, Shivasharan S wrote: > Signed-off-by: Kashyap Desai <kashyap.desai@xxxxxxxxxxxx> > Signed-off-by: Shivasharan S <shivasharan.srikanteshwara@xxxxxxxxxxxx> > --- > drivers/scsi/megaraid/megaraid_sas_base.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c > index 04ef0a0..b29cfd3 100644 > --- a/drivers/scsi/megaraid/megaraid_sas_base.c > +++ b/drivers/scsi/megaraid/megaraid_sas_base.c > @@ -6393,6 +6393,7 @@ megasas_suspend(struct pci_dev *pdev, pm_message_t state) > if (instance->ev != NULL) { > struct megasas_aen_event *ev = instance->ev; > cancel_delayed_work_sync(&ev->hotplug_work); > + flush_scheduled_work(); > instance->ev = NULL; > } > > @@ -6619,6 +6620,7 @@ static void megasas_detach_one(struct pci_dev *pdev) > if (instance->ev != NULL) { > struct megasas_aen_event *ev = instance->ev; > cancel_delayed_work_sync(&ev->hotplug_work); > + flush_scheduled_work(); > instance->ev = NULL; > } > Why is cancel_delayed_work_sync not good enough? tomash