OSDN Git Service

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)
commit73dc3c4ac703c6fea4b40e8ed1ddd80564da3dea
treeb75e2b22c02a83c5a1d8f4ee676096cf5bceccec
parenta113eaaf86373362b053279049907ff82b5df6c8
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