scsi: ufshcd: fix missing destroy_workqueue()
PATCH v2 1/1 scsi: ufshcd: fix missing destroy_workqueue()
Add the missing destroy_workqueue() before return from ufshcd_init in the error handling case as well as in ufshcd_remove.
---
v2: consider missing destroy_workqueue ufshcd_remove either.
drivers/scsi/ufs/ufshcd.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/scsi/ufs/ufshcd.c +2 -0
@@ -8906,6 +8906,7 @@ void ufshcd_remove(struct ufs_hba *hba)blk_mq_free_tag_set (&hba->tmf_tag_set);blk_cleanup_queue (hba->cmd_queue);scsi_remove_host (hba->host); +destroy_workqueue (hba->eh_wq);/* disable interrupts */ ufshcd_disable_intr (hba, hba->intr_mask);ufshcd_hba_stop (hba);
@@ -9206,6 +9207,7 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq) exit_gating:ufshcd_exit_clk_scaling (hba);ufshcd_exit_clk_gating (hba); +destroy_workqueue (hba->eh_wq); out_disable: hba->is_irq_enabled = false;ufshcd_hba_exit (hba);
Signature · 1 line
2.23.0
Quoted 10 lines
Add the missing
destroy_workqueue()before return fromufshcd_initin the error handling case as well as inufshcd_remove.Fixes 4db7a2360597 ("scsi: ufs: Fix concurrency of error handler and othererror recovery paths")
Suggested-by Avri Altman <[email protected]>Signed-off-by Qinglang Miao <[email protected]>
Quoted 29 lines
---
v2: consider missingdestroy_workqueueufshcd_removeeither.drivers/scsi/ufs/ufshcd.c | 2 ++ 1 file changed, 2 insertions(+)drivers/scsi/ufs/ufshcd.c +2
-0@@ -8906,6 +8906,7 @@ void ufshcd_remove(struct ufs_hba *hba)blk_mq_free_tag_set (&hba->tmf_tag_set);blk_cleanup_queue (hba->cmd_queue);scsi_remove_host (hba->host); +destroy_workqueue (hba->eh_wq);/* disable interrupts */ ufshcd_disable_intr (hba, hba->intr_mask);ufshcd_hba_stop (hba);@@ -9206,6 +9207,7 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq) exit_gating:ufshcd_exit_clk_scaling (hba );ufshcd_exit_clk_gating (hba); +destroy_workqueue (hba->eh_wq); out_disable: hba->is_irq_enabled = false;ufshcd_hba_exit(hba);--
2.23.0
Quoted 8 lines · Qinglang Miao
Add the missing
destroy_workqueue()before return fromufshcd_initin the error handling case as well as inufshcd_remove.Fixes 4db7a2360597 ("scsi: ufs: Fix concurrency of error handler and other error recovery paths")Suggested-by Avri Altman <[email protected]>Signed-off-by Qinglang Miao <[email protected]>---
Quoted 26 lines
v2: consider missing
destroy_workqueueufshcd_removeeither.drivers/scsi/ufs/ufshcd.c | 2 ++ 1 file changed, 2 insertions(+)drivers/scsi/ufs/ufshcd.c +2
-0@@ -8906,6 +8906,7 @@ void ufshcd_remove(struct ufs_hba *hba)blk_mq_free_tag_set (&hba->tmf_tag_set);blk_cleanup_queue (hba->cmd_queue);scsi_remove_host (hba->host); +destroy_workqueue (hba->eh_wq);/* disable interrupts */ ufshcd_disable_intr (hba, hba->intr_mask);ufshcd_hba_stop (hba);@@ -9206,6 +9207,7 @@ int ufshcd_init(struct ufs_hba *hba, void __iomem *mmio_base, unsigned int irq) exit_gating:ufshcd_exit_clk_scaling (hba);ufshcd_exit_clk_gating (hba); +destroy_workqueue (hba->eh_wq); out_disable: hba->is_irq_enabled = false;ufshcd_hba_exit (hba);
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, Linux Foundation Collaborative Project
Martin K. Petersen
AppliedQuoted 3 lines · Qinglang Miao
Add the missing
destroy_workqueue()before return fromufshcd_initin the error handling case as well as inufshcd_remove.
Applied to 5.10/scsi-fixes, thanks!
[1/1] scsi: ufshcd: Fix missing destroy_workqueue()
https://git.kernel.org/mkp/scsi/c/2e6f11a797a2
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering