lkml.org 
[lkml]   [2002]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 2.5.41, cciss, no tape timeouts (1 of 5)

This patch makes scsi commands sent to tape drives from the cciss driver
have no timeout instead of a 1000 second timeout. With the current
code, When the timeout expires, nothing good happens so probably better
to have no timeout. Applies to 2.5.39.

-- steve

diff -urN lx2539/drivers/block/cciss_scsi.c lx2539-1/drivers/block/cciss_scsi.c
--- lx2539/drivers/block/cciss_scsi.c Fri Sep 27 16:49:15 2002
+++ lx2539-1/drivers/block/cciss_scsi.c Tue Oct 1 14:09:06 2002
@@ -913,7 +913,7 @@

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;
@@ -1445,7 +1445,7 @@

// 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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.022 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site