From: Dan Williams Date: Fri, 18 Nov 2011 01:59:54 +0000 (-0800) Subject: [SCSI] libsas: poll for ata device readiness after reset X-Git-Tag: v3.4-rc1~145^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36a399473902a57218dc493c5a814708a56b73ab;p=pandora-kernel.git [SCSI] libsas: poll for ata device readiness after reset Use ata_wait_after_reset() to poll for link recovery after a reset. This combined with sas_ha->eh_mutex prevents expander rediscovery from probing phys in an intermediate state. Local discovery does not have a mechanism to filter link status changes during this timeout, so it remains the responsibility of lldds to prevent premature port teardown. Although once all lldd's support ->lldd_ata_check_ready() that could be used as a gate to local port teardown. The signature fis is re-transmitted when the link comes back so we should be revalidating the ata device class, but that is left to a future patch. Signed-off-by: Dan Williams Signed-off-by: James Bottomley --- Reading git-diff-tree failed