Skip to contentSkip to conversation

scsi_error.c: DID_SOFT_ERROR comment clean up

PATCH In review Petros Koutoupis 2 participants 2 messages Oct 30, 2017 – Oct 31, 2017 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi_error.c: DID_SOFT_ERROR comment clean up

Updated comment. We are keeping track of maximum number of retries per command via retries/allowed in struct scsi_cmnd. Corrected comment positioning.

drivers/scsi/scsi_error.c +0 -0
diff -uNpr linux-4.14-rc7.orig/drivers/scsi/scsi_error.c linux-4.14-rc7/drivers/scsi/scsi_error.c
@@ -1747,16 +1747,12 @@ int scsi_decide_disposition(struct scsi_

   * that it indicates SUCCESS.
   */
  return SUCCESS;
+ case DID_SOFT_ERROR:
  /*
   * when the low level driver returns did_soft_error,
   * it is responsible for keeping an internal retry counter
   * in order to avoid endless loops (db)
-  *
-  * actually this is a bug in this function here.  we should
-  * be mindful of the maximum number of retries specified
-  * and not get stuck in a loop.
   */
- case DID_SOFT_ERROR:
  goto maybe_retry;
  case DID_IMM_RETRY:
  return NEEDS_RETRY;

#1 lore raw

Petros,

Quoted 3 lines

Updated comment. We are keeping track of maximum number of retries per command via retries/allowed in struct scsi_cmnd. Corrected comment positioning.

This didn't apply to 4.15/scsi-queue. I applied it by hand.

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering