diff options
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 0289f5745fb9..61afeb59a836 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -82,9 +82,12 @@ enum { | |||
82 | 82 | ||
83 | 83 | ||
84 | enum { | 84 | enum { |
85 | ISCSI_TASK_FREE, | ||
85 | ISCSI_TASK_COMPLETED, | 86 | ISCSI_TASK_COMPLETED, |
86 | ISCSI_TASK_PENDING, | 87 | ISCSI_TASK_PENDING, |
87 | 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 */ | ||
88 | }; | 91 | }; |
89 | 92 | ||
90 | struct iscsi_r2t_info { | 93 | struct iscsi_r2t_info { |
@@ -122,6 +125,10 @@ struct iscsi_task { | |||
122 | struct scsi_cmnd *sc; /* associated SCSI cmd*/ | 125 | struct scsi_cmnd *sc; /* associated SCSI cmd*/ |
123 | struct iscsi_conn *conn; /* used connection */ | 126 | struct iscsi_conn *conn; /* used connection */ |
124 | 127 | ||
128 | /* data processing tracking */ | ||
129 | unsigned long last_xfer; | ||
130 | unsigned long last_timeout; | ||
131 | bool have_checked_conn; | ||
125 | /* state set/tested under session->lock */ | 132 | /* state set/tested under session->lock */ |
126 | int state; | 133 | int state; |
127 | atomic_t refcount; | 134 | atomic_t refcount; |
@@ -181,9 +188,7 @@ struct iscsi_conn { | |||
181 | 188 | ||
182 | /* xmit */ | 189 | /* xmit */ |
183 | struct list_head mgmtqueue; /* mgmt (control) xmit queue */ | 190 | struct list_head mgmtqueue; /* mgmt (control) xmit queue */ |
184 | struct list_head mgmt_run_list; /* list of control tasks */ | 191 | struct list_head cmdqueue; /* data-path cmd queue */ |
185 | struct list_head xmitqueue; /* data-path cmd queue */ | ||
186 | struct list_head run_list; /* list of cmds in progress */ | ||
187 | struct list_head requeue; /* tasks needing another run */ | 192 | struct list_head requeue; /* tasks needing another run */ |
188 | struct work_struct xmitwork; /* per-conn. xmit workqueue */ | 193 | struct work_struct xmitwork; /* per-conn. xmit workqueue */ |
189 | unsigned long suspend_tx; /* suspend Tx */ | 194 | unsigned long suspend_tx; /* suspend Tx */ |
@@ -406,6 +411,7 @@ extern int __iscsi_complete_pdu(struct iscsi_conn *, struct iscsi_hdr *, | |||
406 | char *, int); | 411 | char *, int); |
407 | extern int iscsi_verify_itt(struct iscsi_conn *, itt_t); | 412 | extern int iscsi_verify_itt(struct iscsi_conn *, itt_t); |
408 | extern struct iscsi_task *iscsi_itt_to_ctask(struct iscsi_conn *, itt_t); | 413 | extern struct iscsi_task *iscsi_itt_to_ctask(struct iscsi_conn *, itt_t); |
414 | extern struct iscsi_task *iscsi_itt_to_task(struct iscsi_conn *, itt_t); | ||
409 | extern void iscsi_requeue_task(struct iscsi_task *task); | 415 | extern void iscsi_requeue_task(struct iscsi_task *task); |
410 | extern void iscsi_put_task(struct iscsi_task *task); | 416 | extern void iscsi_put_task(struct iscsi_task *task); |
411 | extern void __iscsi_get_task(struct iscsi_task *task); | 417 | extern void __iscsi_get_task(struct iscsi_task *task); |