About ufshcd_err_handling_unprepare

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

 



Dear all

I have one question about ufshcd_clear_ua_wluns in ufshcd_err_handling_unprepare.
You probably know a scsi command (request sense) is issued in there to clear UAC for W-LUs.

Let's think about a situation that a read command is timed-out.
And then scmd_eh_abort_handler is called, shost's state is transitioned to SHOST_RECOVERY and scsi_sh is waken up.
If this is the case that the scsi_eh goes up to eh_host_reset_handler,
ufshcd_eh_host_reset_handler queues ufshcd_err_handler and waits for its completion.
And this function can call ufshcd_err_handling_unprepare at the end.

But I think, at this time, the scsi command, i.e. request sense, could not be dispatched because of the shost's state.
Is it needed to be fixed or did I miss something?

Thanks.
Kiwoong Kim






[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