public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Format Unit can take many hours
@ 2004-05-11 11:49 Kurt Garloff
  2004-05-11 12:20 ` Jens Axboe
  2004-05-11 14:01 ` Ricky Beam
  0 siblings, 2 replies; 13+ messages in thread
From: Kurt Garloff @ 2004-05-11 11:49 UTC (permalink / raw)
  To: Linux SCSI list; +Cc: Linux kernel list


[-- Attachment #1.1: Type: text/plain, Size: 301 bytes --]

Hi,

the timeout for FORMAT_UNIT should be much longer; I've seen 8hrs
already (75Gig). I've increased the timeout from 2hrs to 12hrs.

Regards,
-- 
Kurt Garloff  <garloff@suse.de>                            Cologne, DE 
SUSE LINUX AG, Nuernberg, DE                          SUSE Labs (Head)

[-- Attachment #1.2: scsi-format-unit-timeout.diff --]
[-- Type: text/plain, Size: 786 bytes --]

--- linux-2.6.5.orig/drivers/scsi/scsi_ioctl.c	2004-04-04 05:38:20.000000000 +0200
+++ linux-2.6.5/drivers/scsi/scsi_ioctl.c	2004-05-11 08:59:12.837421215 +0200
@@ -26,12 +26,12 @@
 #include "scsi_logging.h"
 
 #define NORMAL_RETRIES			5
-#define IOCTL_NORMAL_TIMEOUT			(10 * HZ)
-#define FORMAT_UNIT_TIMEOUT		(2 * 60 * 60 * HZ)
+#define IOCTL_NORMAL_TIMEOUT		(10 * HZ)
+#define FORMAT_UNIT_TIMEOUT		(12 * 60 * 60 * HZ)
 #define START_STOP_TIMEOUT		(60 * HZ)
 #define MOVE_MEDIUM_TIMEOUT		(5 * 60 * HZ)
 #define READ_ELEMENT_STATUS_TIMEOUT	(5 * 60 * HZ)
-#define READ_DEFECT_DATA_TIMEOUT	(60 * HZ )  /* ZIP-250 on parallel port takes as long! */
+#define READ_DEFECT_DATA_TIMEOUT	(60 * HZ)  /* ZIP-250 on parallel port takes as long! */
 
 #define MAX_BUF PAGE_SIZE
 

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-05-11 18:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-11 11:49 [PATCH] Format Unit can take many hours Kurt Garloff
2004-05-11 12:20 ` Jens Axboe
2004-05-11 12:40   ` Arjan van de Ven
2004-05-11 12:46     ` Jens Axboe
2004-05-11 12:44   ` Kurt Garloff
2004-05-11 16:10   ` Jeff Garzik
2004-05-11 16:14     ` Jens Axboe
2004-05-11 16:26       ` Kurt Garloff
2004-05-11 17:27         ` Jens Axboe
2004-05-11 14:01 ` Ricky Beam
2004-05-11 16:28   ` Bob Tracy
2004-05-11 16:44     ` Ricky Beam
2004-05-11 18:30       ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox