diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2007-01-11 17:15:17 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-01-13 17:17:27 -0500 |
commit | 3ebf6922b0833807e54c73f4794c74baf9945fc8 (patch) | |
tree | f6a986a1fc80efe6f3c1a30073cfec34fd7edc7c /include | |
parent | 37958fb040cf6f88b354b9fa7e846014ffbd3b73 (diff) |
[SCSI] libsas: Enable the EH strategy handler to reset a phy after a command
When a SAS LLDD needs to request a device port reset, it needs to have all
commands aborted before it can reset the port. Since commands are put on
the EH's list in the order that they were queued, the LLDD can set a "need
reset" flag in the last task to be aborted so that the EH can reset the
port after all commands are aborted.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include')
-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 1d394855b366..75df71f08ce1 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
@@ -553,6 +553,7 @@ struct sas_task { | |||
553 | #define SAS_TASK_STATE_PENDING 1 | 553 | #define SAS_TASK_STATE_PENDING 1 |
554 | #define SAS_TASK_STATE_DONE 2 | 554 | #define SAS_TASK_STATE_DONE 2 |
555 | #define SAS_TASK_STATE_ABORTED 4 | 555 | #define SAS_TASK_STATE_ABORTED 4 |
556 | #define SAS_TASK_NEED_DEV_RESET 8 | ||
556 | #define SAS_TASK_AT_INITIATOR 16 | 557 | #define SAS_TASK_AT_INITIATOR 16 |
557 | 558 | ||
558 | static inline struct sas_task *sas_alloc_task(gfp_t flags) | 559 | static inline struct sas_task *sas_alloc_task(gfp_t flags) |