Re: [PATCH] scsi: ufs: Correct the lun used in eh_device_reset_handler() callback

From: Martin K. Petersen
Date: Thu Jan 07 2021 - 23:20:43 EST


On Mon, 28 Dec 2020 04:04:36 -0800, Can Guo wrote:

> 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.

Applied to 5.11/scsi-fixes, thanks!

[1/1] scsi: ufs: Correct the lun used in eh_device_reset_handler() callback
https://git.kernel.org/mkp/scsi/c/35fc4cd34426

--
Martin K. Petersen Oracle Linux Engineering