[9243] in linux-scsi channel archive

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

Re: SCSI disk spinup....

daemon@ATHENA.MIT.EDU (Eric Youngdale)
Mon Jul 24 20:46:58 2000

Message-ID: <001201bff5d0$0340bc00$0f17a8c0@eric.home>
From:	"Eric Youngdale" <eric@andante.org>
To:	<linux-scsi@vger.rutgers.edu>, <linux-kernel@vger.rutgers.edu>,
	"Rogier Wolff" <R.E.Wolff@BitWizard.nl>
Date:	Fri, 21 Jul 2000 19:07:14 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit


    Yes, it sure looks like something isn't right here.  I think we probably
used to use "spintime" for this purpose, but now there is a boolean flag
"spintime" and a "spintime_value".  I think you are right that we just need
to move the initialization of spintime_value out of the loop - probably to
the same place that spintime is getting initialized.

-Eric

----- Original Message -----
From: "Rogier Wolff" <R.E.Wolff@BitWizard.nl>
To: <linux-scsi@vger.rutgers.edu>; <linux-kernel@vger.rutgers.edu>
Sent: Friday, July 21, 2000 5:47 AM
Subject: SCSI disk spinup....


>
> In sd.c I find:
>
>
>                         spintime_value = jiffies;
>                         time1 = HZ;
>                         /* Wait 1 second for next try */
>                         do {
>                                 current->state = TASK_UNINTERRUPTIBLE;
>                                 time1 = schedule_timeout(time1);
>                         } while(time1);
>                         printk(".");
>                 }
>         } while (the_result && spintime && time_after(spintime_value + 100
* HZ, jiffies));
>
>
> This will keep on trying to spin up the disk until trying to spin up
> the disk (with immediate return) takes longer than 100 seconds. The
> spintime_value = jiffies needs to be moved outside the loop, doesn't
> it?
>
> My system has been trying to spin up this disk for over 500 seconds
> now!
>
>
> sda: Spinning up
disk........................................................................
............................................................................
............................................................................
............................................................................
............................................................................
............................................................................
.................................................
>
> This is in linux-2.4.0-test2, maybe it's been fixed in a later kernel,
> I don't know.
>
> Back to 2.2.x ....
>
> Roger.
>
>
> --
> ** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
> *-- BitWizard writes Linux device drivers for any device you may have! --*
> *       Common sense is the collection of                                *
> ******  prejudices acquired by age eighteen.   -- Albert Einstein ********
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.rutgers.edu
>


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu

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