> > Hi, > > > > > Currently bits in hba->outstanding_tasks are cleared only after their > > corresponding task management commands are successfully done by > > __ufshcd_issue_tm_cmd(). > > > > If timeout happens in a task management command, its corresponding > > bit in hba->outstanding_tasks will not be cleared until next task > > management command with the same tag used successfully finishes.‧ > ufshcd_clear_tm_cmd is also called as part of ufshcd_err_handler. > Does this change something in your assumptions? And BTW there is a specific __clear_bit in __ufshcd_issue_tm_cmd() in case of a TO. > > Thanks, > Avri >