[1784] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

SpinUp Patch

daemon@ATHENA.MIT.EDU (Leonard N. Zubkoff)
Thu May 1 01:39:32 1997

Date: 	Wed, 30 Apr 1997 22:36:29 -0700
From: "Leonard N. Zubkoff" <lnz@dandelion.com>
To: linux-scsi@vger.rutgers.edu

Nicholas LeRoy had problems with a disk being spun up automatically when the
SCSI disk driver was loaded as a module, and for some reason there was code
that explicitly omitted doing the spin up.  No one seems to know of any reason
not to perform a spin up if necessary, and this change resolves Nicholas'
problem, so it appears we should change this.

		Leonard


--- linux/drivers/scsi/sd.c-	Fri Feb 28 15:14:18 1997
+++ linux/drivers/scsi/sd.c	Wed Apr 30 22:33:05 1997
@@ -1023,7 +1023,7 @@
     spintime = 0;
     
     /* Spin up drives, as required.  Only do this at boot time */
-    if (!MODULE_FLAG){
+    /* Spinup needs to be done for module loads too. */
 	do{
 	    retries = 0;
 	    while(retries < 3)
@@ -1096,7 +1096,6 @@
 	    else
 		printk( "ready\n" );
 	}
-    }  /* !MODULE_FLAG */
     
     retries = 3;
     do {

home help back first fref pref prev next nref lref last post