diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2009-05-13 18:57:49 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-05-23 16:44:13 -0400 |
commit | b3cd5050bf8eb32ceecee129cac7c59e6f1668c4 (patch) | |
tree | 5aa4999dd1c5c7fe83354f3965764f0849afaff3 /include/scsi/libiscsi.h | |
parent | 1336aed10b8af791378b017f0fa8da4e5b827b8d (diff) |
[SCSI] libiscsi: add task aborted state
If a task did not complete normally due to a TMF, libiscsi will
now complete the task with the state ISCSI_TASK_ABRT_TMF. Drivers
like bnx2i that need to free resources if a command did not complete normally
can then check the task state. If a driver does not need to send
a special command if we have dropped the session then they can check
for ISCSI_TASK_ABRT_SESS_RECOV.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index facae71183a5..196525cd402f 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -86,6 +86,8 @@ enum { | |||
86 | ISCSI_TASK_COMPLETED, | 86 | ISCSI_TASK_COMPLETED, |
87 | ISCSI_TASK_PENDING, | 87 | ISCSI_TASK_PENDING, |
88 | ISCSI_TASK_RUNNING, | 88 | ISCSI_TASK_RUNNING, |
89 | ISCSI_TASK_ABRT_TMF, /* aborted due to TMF */ | ||
90 | ISCSI_TASK_ABRT_SESS_RECOV, /* aborted due to session recovery */ | ||
89 | }; | 91 | }; |
90 | 92 | ||
91 | struct iscsi_r2t_info { | 93 | struct iscsi_r2t_info { |