Re: [PATCH 33/39] megaraid_sas: call flush_scheduled_work during controller shutdown/detach

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux