> Users can initiate resets to specific SCSI device/target/host through
> IOCTL. When this happens, the SCSI cmd passed to eh_device/target/host
> _reset_handler() callbacks is initialized with a request whose tag is -1.
> So, in this case, it is not right for eh_device_reset_handler() callback
> to count on the lun get from hba->lrb[-1]. Fix it by getting lun from the
> SCSI device associated with the SCSI cmd.
> 
> Signed-off-by: Can Guo <c...@codeaurora.org>
Reviewed-by: Avri Altman <avri.alt...@wdc.com>

Btw, am surprised to see that you guys are still using sg_reset instead of 
ufs-utils?

Thanks,
Avri

Reply via email to