Re: [PATCH v3 8/8] scsi: ufs: Fix a deadlock between PM and the SCSI error handler

Bean Huo
2022-09-30T15:03:58Z

On Thu, 2022-09-29 at 15:00 -0700, Bart Van Assche wrote:
> +       ufshcd_link_recovery(hba);
> +       dev_info(hba->dev, "%s() finished; outstanding_tasks =
> %#lx.\n",
> +                __func__, hba->outstanding_tasks);
> +
> +       return hba->outstanding_tasks ? SCSI_EH_RESET_TIMER :
> SCSI_EH_DONE;

Bart,

you have reset the device and host, in the case, there are pending
TMs, Should be cleared locally, just like ufshcd_err_handler() does?

Kind regards,
Bean