diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-12-02 16:07:01 -0800 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-19 14:13:51 -0600 |
commit | 81c757bc696284f39f07766f0c2ca67af64ce9bd (patch) | |
tree | a01a13219199520c7a992f90d54cc83513a5cdb0 /include/scsi/sas_ata.h | |
parent | 0b3e09da1350397f3f8b6fd839ab455b0b587451 (diff) | |
download | kernel_goldelico_gta04-81c757bc696284f39f07766f0c2ca67af64ce9bd.zip kernel_goldelico_gta04-81c757bc696284f39f07766f0c2ca67af64ce9bd.tar.gz kernel_goldelico_gta04-81c757bc696284f39f07766f0c2ca67af64ce9bd.tar.bz2 |
[SCSI] libsas: execute transport link resets with libata-eh via host workqueue
Link resets leave ata affiliations intact, so arrange for libsas to make
an effort to avoid dropping the device due to a slow-to-recover link.
Towards this end carry out reset in the host workqueue so that it can
check for ata devices and kick the reset request to libata. Hard
resets, in contrast, bypass libata since they are meant for associating
an ata device with another initiator in the domain (tears down
affiliations).
Need to add a new transport_sas_phy_reset() since the current
sas_phy_reset() is a utility function to libsas lldds. They are not
prepared for it to loop back into eh.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi/sas_ata.h')
-rw-r--r-- | include/scsi/sas_ata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/scsi/sas_ata.h b/include/scsi/sas_ata.h index c0bcd30..da3f377 100644 --- a/include/scsi/sas_ata.h +++ b/include/scsi/sas_ata.h @@ -45,6 +45,7 @@ int sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, struct list_head *done_q); void sas_probe_sata(struct work_struct *work); void sas_ata_schedule_reset(struct domain_device *dev); +void sas_ata_wait_eh(struct domain_device *dev); #else @@ -79,6 +80,9 @@ static inline void sas_ata_schedule_reset(struct domain_device *dev) { } +static inline void sas_ata_wait_eh(struct domain_device *dev) +{ +} #endif #endif /* _SAS_ATA_H_ */ |