Skip to contentSkip to conversation

remove scsi_eh_retry_cmd

PATCH New Andrew Morton 1 participant 1 message Mar 11, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove scsi_eh_retry_cmd

Compile warnings are useful...

drivers/scsi/scsi_error.c renamed from drivers/scsi/scsi_error.c~a +0 -22
diff -puN drivers/scsi/scsi_error.c~a drivers/scsi/scsi_error.c
@@ -597,28 +597,6 @@ static int scsi_request_sense(struct scs
 }
 
 /**
- * scsi_eh_retry_cmd - Retry the original command
- * @scmd:	Original failed SCSI cmd.
- *
- * Notes:
- *    This function will *not* return until the command either times out,
- *    or it completes.
- **/
-static int scsi_eh_retry_cmd(struct scsi_cmnd *scmd)
-{
-	int rtn = SUCCESS;
-
-	for (; scmd->retries < scmd->allowed; scmd->retries++) {
-		scsi_setup_cmd_retry(scmd);
-		rtn = scsi_send_eh_cmnd(scmd, scmd->timeout_per_command);
-		if (rtn != NEEDS_RETRY)
-			break;
-	}
-
-	return rtn;
-}
-
-/**
  * scsi_eh_finish_cmd - Handle a cmd that eh is finished with.
  * @scmd:	Original SCSI cmd that eh has finished.
  * @done_q:	Queue for processed commands.

_