[PATCH] 2.6+2.4 dpt_i2o driver timing out during tape erase operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tape operation (erase) timeouts are overridden by the driver, the
purpose of the override was because disk drives and arrays on the
dpt_i2o based controllers could take up to 5 minutes to complete. The
override should only apply to disk drives and arrays (both appear as
DASD devices from the driver's perspective).

Signed-off-by: Mark Salyzyn <aacraid@xxxxxxxxxxx>

--- a/drivers/scsi/dpt_i2o.c	Mon Apr  4 09:39:17 2005
+++ b/drivers/scsi/dpt_i2o.c	Mon Apr 25 07:21:50 2005
@@ -420,8 +420,9 @@
 		return 1;
 	}
 
-	if(cmd->eh_state != SCSI_STATE_QUEUED){
-		// If we are not doing error recovery
+	if ((cmd->eh_state != SCSI_STATE_QUEUED)
+	 && (cmd->device->type == TYPE_DISK)) {
+		/* If the controller is doing error recovery */
 		mod_timer(&cmd->eh_timeout, timeout);
 	}


Sincerely -- Mark Salyzyn
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux