Skip to contentSkip to conversation

2.5.44 cciss no scsi tape timeouts

PATCH New Stephen Cameron 1 participant 1 message Oct 23, 2002 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 4/10 2.5.44 cciss no scsi tape timeouts

patch 4 of 10
The whole set can be grabbed via anonymous cvs (empty password):
cvs -d:pserver:[email protected]:/cvsroot/cciss login cvs -z3 -d:pserver:[email protected]:/cvsroot/cciss co 2.5.44

This patch makes scsi commands to tape drives have no timeouts. Previously the timeout was 1000 seconds, too short, and nothing good happens when the timeout expires. Better to have no timeout.

 drivers/block/cciss_scsi.c |    4 ++--
 1 files changed, 2 insertions, 2 deletions
drivers/block/cciss_scsi.c renamed from drivers/block/cciss_scsi.c~no_tape_timeouts +2 -2
@@ -913,7 +913,7 @@ cciss_scsi_do_simple_cmd(ctlr_info_t *c,
 
 	memset(cp->Request.CDB, 0, sizeof(cp->Request.CDB));
 	memcpy(cp->Request.CDB, cdb, cdblen);
-	cp->Request.Timeout = 1000;		// guarantee completion. 
+	cp->Request.Timeout = 0;
 	cp->Request.CDBLen = cdblen;
 	cp->Request.Type.Type = TYPE_CMD;
 	cp->Request.Type.Attribute = ATTR_SIMPLE;
@@ -1427,7 +1427,7 @@ cciss_scsi_queue_command (Scsi_Cmnd *cmd
 	
 	// Fill in the request block...
 
-	cp->Request.Timeout = 1000; // guarantee completion
+	cp->Request.Timeout = 0;
 	memset(cp->Request.CDB, 0, sizeof(cp->Request.CDB));
 	if (cmd->cmd_len > sizeof(cp->Request.CDB)) BUG();
 	cp->Request.CDBLen = cmd->cmd_len;

.