Re: Crashed Drive, libata wedges when trying to recover data

Brad Campbell
2004-09-02T09:05:31Z

Greg Stark wrote:

> Any clue what I need to do to achieve this? Is this a bug because this isn't a
> well-travelled code-path? (Dead drives not being something you can conjure up
> on demand)? Or is this indicative of more problems than just a crashed drive?
>
> This is on a stock 2.6.6 kernel tree, btw.
>

Known issue, fixed in 2.6.9-rc1. Apply this to 2.6.6 and your good to go.

Regards,
Brad

brad@srv:/usr/src$ diff -u temp/linux-2.6.8.1/drivers/scsi/libata-scsi.c
linux-2.6.8.1/drivers/scsi/libata-scsi.c
--- temp/linux-2.6.8.1/drivers/scsi/libata-scsi.c 2004-08-14 14:55:19.000000000 +0400
+++ linux-2.6.8.1/drivers/scsi/libata-scsi.c 2004-08-18 01:04:11.000000000 +0400
@@ -213,6 +213,7 @@

ap = (struct ata_port *) &host->hostdata[0];
ap->ops->eng_timeout(ap);
+ host->host_failed--;

DPRINTK("EXIT\n");
return 0;

T