mirror of
https://github.com/torvalds/linux.git
synced 2024-10-26 23:12:36 +00:00
[PATCH] libata: fix ATA_EH_REVALIDATE clearing
ATA_EH_REVALIDATE should be cleared after all devices on the target port have been revalidated. Fix ata_eh_revalidate_and_attach() accordingly. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
551e888950
commit
f9be7113b5
|
@ -1556,8 +1556,6 @@ static int ata_eh_revalidate_and_attach(struct ata_port *ap,
|
||||||
|
|
||||||
/* schedule the scsi_rescan_device() here */
|
/* schedule the scsi_rescan_device() here */
|
||||||
queue_work(ata_aux_wq, &(ap->scsi_rescan_task));
|
queue_work(ata_aux_wq, &(ap->scsi_rescan_task));
|
||||||
|
|
||||||
ehc->i.action &= ~ATA_EH_REVALIDATE;
|
|
||||||
} else if (dev->class == ATA_DEV_UNKNOWN &&
|
} else if (dev->class == ATA_DEV_UNKNOWN &&
|
||||||
ehc->tries[dev->devno] &&
|
ehc->tries[dev->devno] &&
|
||||||
ata_class_enabled(ehc->classes[dev->devno])) {
|
ata_class_enabled(ehc->classes[dev->devno])) {
|
||||||
|
@ -1578,7 +1576,9 @@ static int ata_eh_revalidate_and_attach(struct ata_port *ap,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc)
|
if (rc == 0)
|
||||||
|
ehc->i.action &= ~ATA_EH_REVALIDATE;
|
||||||
|
else
|
||||||
*r_failed_dev = dev;
|
*r_failed_dev = dev;
|
||||||
|
|
||||||
DPRINTK("EXIT\n");
|
DPRINTK("EXIT\n");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user