diff options
author | Darrick J. Wong | 2006-11-08 02:28:55 +0100 |
---|---|---|
committer | James Bottomley | 2006-11-22 18:05:59 +0100 |
commit | dea22214790d1306f3a3444db13d2c726037b189 (patch) | |
tree | c5bd0d382c73c02f3416aac584e3d3a011cd1261 /include/scsi/libsas.h | |
parent | [SCSI] fix module unload induced compile warning (diff) | |
download | kernel-qcow2-linux-dea22214790d1306f3a3444db13d2c726037b189.tar.gz kernel-qcow2-linux-dea22214790d1306f3a3444db13d2c726037b189.tar.xz kernel-qcow2-linux-dea22214790d1306f3a3444db13d2c726037b189.zip |
[PATCH] aic94xx: handle REQ_DEVICE_RESET
This patch implements a REQ_DEVICE_RESET handler for the aic94xx
driver. Like the earlier REQ_TASK_ABORT patch, this patch defers the
device reset to the Scsi_Host's workqueue, which has the added benefit
of ensuring that the device reset does not happen at the same time
that the abort tmfs are being processed. After the phy reset, the
busted drive should go away and be re-detected later, which is indeed
what I've seen on both a x260 and a x206m.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/libsas.h')
-rw-r--r-- | include/scsi/libsas.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index a1fc20a47c50..29f6e1af1bf9 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h @@ -597,6 +597,7 @@ struct sas_domain_function_template { extern int sas_register_ha(struct sas_ha_struct *); extern int sas_unregister_ha(struct sas_ha_struct *); +int sas_phy_reset(struct sas_phy *phy, int hard_reset); extern int sas_queuecommand(struct scsi_cmnd *, void (*scsi_done)(struct scsi_cmnd *)); extern int sas_target_alloc(struct scsi_target *); |