I would like to request that the enclosed patch be considered for inclusion
into the core kernel. Currently, there is a 100 second delay required when
a TUR returns 'Logical Unit Not Ready - Manual Intervention Required' status
on a passive SCSI device. This is the case on EMC CLARiiON arrays.
Are there objections with the patch below as it skips the spin-up time?
Thanks for your consideration.
Heather
--- linux-2.4/drivers/scsi/sd.c.orig Wed Jul 24 17:33:02 2002
+++ linux-2.4/drivers/scsi/sd.c Wed Jul 24 17:38:20 2002
@@ -842,10 +842,13 @@ static int sd_init_onedisk(int i)
break;
}
- /* Look for non-removable devices that return NOT_READY.
+ /* Look for non-removable devices that return NOT_READY,
+ * and don't require manual intervention.
* Issue command to spin up drive for these cases. */
if (the_result && !rscsi_disks[i].device->removable &&
- SRpnt->sr_sense_buffer[2] == NOT_READY) {
+ SRpnt->sr_sense_buffer[2] == NOT_READY &&
+ ! ( SRpnt->sr_sense_buffer[12] == 0x04 && /* ASC */
+ SRpnt->sr_sense_buffer[13] == 0x03 )) { /* ASCQ */
unsigned long time1;
if (!spintime) {
printk("%s: Spinning up disk...", nbuff);
-
To unsubscribe from this list: 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
|