Skip to contentSkip to conversation

update max sdev block limit

PATCH New James Smart 1 participant 1 message May 11, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 update max sdev block limit

This patch ups the maximum limit for how long an sdev is allowed to be blocked. Originally, the value was 60 seconds. However, we are aware of array failover and switch reboot times that can be as high as 90 seconds. We're proposing to change the max to 120 seconds.

-- james s

drivers/scsi/scsi_priv.h +1 -1
diff -upNr a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h
@@ -127,7 +127,7 @@ extern struct bus_type scsi_bus_type;
  * classes.
  */
 
-#define SCSI_DEVICE_BLOCK_MAX_TIMEOUT	(HZ*60)
+#define SCSI_DEVICE_BLOCK_MAX_TIMEOUT	(HZ*120)
 extern int scsi_internal_device_block(struct scsi_device *sdev);
 extern int scsi_internal_device_unblock(struct scsi_device *sdev);