]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Revert "Retry aborted SCSI commands instead of completing these successfully"
authorBart Van Assche <bvanassche@acm.org>
Wed, 20 Oct 2021 21:40:15 +0000 (14:40 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Oct 2021 03:24:49 +0000 (23:24 -0400)
commit91d6e6135f785d60979faf88626f8eefc50be31c
tree7afefa551f1c03c02cb98fb9d212f2b42d43524e
parent33de1ece590b077f1fd91dbf012e20790e6bc23f
scsi: ufs: Revert "Retry aborted SCSI commands instead of completing these successfully"

Commit 05e4f9b9d380 ("scsi: ufs: Retry aborted SCSI commands instead of
completing these successfully") is not necessary. If a SCSI command is
aborted successfully the UFS controller has not modified the command status
and the command status still has the value assigned by
ufshcd_prepare_req_desc_hdr(), namely OCS_INVALID_COMMAND_STATUS. The
function ufshcd_transfer_rsp_status() requeues commands that have an
invalid command status. Hence revert commit 05e4f9b9d380.

Link: https://lore.kernel.org/r/20211020214024.2007615-2-bvanassche@acm.org
Acked-by: Avri Altman <Avri.Altman@wdc.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c