]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Retry aborted SCSI commands instead of completing these successfully
authorBart Van Assche <bvanassche@acm.org>
Thu, 22 Jul 2021 03:34:38 +0000 (20:34 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 3 Aug 2021 01:44:23 +0000 (21:44 -0400)
commit05e4f9b9d3803a013e6ced582ab41fc6d098ea82
treeb75e2b22c02a83c5a1d8f4ee676096cf5bceccec
parentdf111f0c0af1e0944e2bd8c9351f8582384b088f
scsi: ufs: Retry aborted SCSI commands instead of completing these successfully

Neither SAM nor the UFS standard require that the UFS controller fills in
the completion status of commands that have been aborted (LUN RESET aborts
pending commands). Hence do not rely on the completion status provided by
the UFS controller for aborted commands but instead ask the SCSI core to
retry SCSI commands that have been aborted.

Link: https://lore.kernel.org/r/20210722033439.26550-18-bvanassche@acm.org
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Stanley Chu <stanley.chu@mediatek.com>
Cc: Can Guo <cang@codeaurora.org>
Cc: Asutosh Das <asutoshd@codeaurora.org>
Cc: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Bean Huo <beanhuo@micron.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