On Wed, Sep 27, 2023 at 1:43 PM <peter.wang@xxxxxxxxxxxx> wrote: > > From: Peter Wang <peter.wang@xxxxxxxxxxxx> > > When runtime pm send SSU times out, the SCSI core invokes > eh_host_reset_handler, which hooks function ufshcd_eh_host_reset_handler > schedule eh_work and stuck at wait flush_work(&hba->eh_work). > However, ufshcd_err_handler hangs in wait rpm resume. > Do link recovery only in this case. > Below is IO hang stack dump in kernel-6.1 Reviewed-by: Stanley Chu <stanley.chu@xxxxxxxxxxxx>