diff options
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index d1c36759b350..176353c117b6 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -92,7 +92,7 @@ enum { | |||
92 | ISCSI_TASK_RUNNING, | 92 | ISCSI_TASK_RUNNING, |
93 | }; | 93 | }; |
94 | 94 | ||
95 | struct iscsi_cmd_task { | 95 | struct iscsi_task { |
96 | /* | 96 | /* |
97 | * Because LLDs allocate their hdr differently, this is a pointer | 97 | * Because LLDs allocate their hdr differently, this is a pointer |
98 | * and length to that storage. It must be setup at session | 98 | * and length to that storage. It must be setup at session |
@@ -120,9 +120,9 @@ struct iscsi_cmd_task { | |||
120 | void *dd_data; /* driver/transport data */ | 120 | void *dd_data; /* driver/transport data */ |
121 | }; | 121 | }; |
122 | 122 | ||
123 | static inline void* iscsi_next_hdr(struct iscsi_cmd_task *ctask) | 123 | static inline void* iscsi_next_hdr(struct iscsi_task *task) |
124 | { | 124 | { |
125 | return (void*)ctask->hdr + ctask->hdr_len; | 125 | return (void*)task->hdr + task->hdr_len; |
126 | } | 126 | } |
127 | 127 | ||
128 | /* Connection's states */ | 128 | /* Connection's states */ |
@@ -151,7 +151,7 @@ struct iscsi_conn { | |||
151 | unsigned long last_ping; | 151 | unsigned long last_ping; |
152 | int ping_timeout; | 152 | int ping_timeout; |
153 | int recv_timeout; | 153 | int recv_timeout; |
154 | struct iscsi_cmd_task *ping_ctask; | 154 | struct iscsi_task *ping_task; |
155 | 155 | ||
156 | /* iSCSI connection-wide sequencing */ | 156 | /* iSCSI connection-wide sequencing */ |
157 | uint32_t exp_statsn; | 157 | uint32_t exp_statsn; |
@@ -167,8 +167,8 @@ struct iscsi_conn { | |||
167 | * should always fit in this buffer | 167 | * should always fit in this buffer |
168 | */ | 168 | */ |
169 | char *data; | 169 | char *data; |
170 | struct iscsi_cmd_task *login_ctask; /* mtask used for login/text */ | 170 | struct iscsi_task *login_task; /* mtask used for login/text */ |
171 | struct iscsi_cmd_task *ctask; /* xmit task in progress */ | 171 | struct iscsi_task *task; /* xmit task in progress */ |
172 | 172 | ||
173 | /* xmit */ | 173 | /* xmit */ |
174 | struct list_head mgmtqueue; /* mgmt (control) xmit queue */ | 174 | struct list_head mgmtqueue; /* mgmt (control) xmit queue */ |
@@ -285,7 +285,7 @@ struct iscsi_session { | |||
285 | 285 | ||
286 | int scsi_cmds_max; /* max scsi commands */ | 286 | int scsi_cmds_max; /* max scsi commands */ |
287 | int cmds_max; /* size of cmds array */ | 287 | int cmds_max; /* size of cmds array */ |
288 | struct iscsi_cmd_task **cmds; /* Original Cmds arr */ | 288 | struct iscsi_task **cmds; /* Original Cmds arr */ |
289 | struct iscsi_pool cmdpool; /* PDU's pool */ | 289 | struct iscsi_pool cmdpool; /* PDU's pool */ |
290 | }; | 290 | }; |
291 | 291 | ||
@@ -365,16 +365,16 @@ extern void iscsi_suspend_tx(struct iscsi_conn *conn); | |||
365 | * pdu and task processing | 365 | * pdu and task processing |
366 | */ | 366 | */ |
367 | extern void iscsi_update_cmdsn(struct iscsi_session *, struct iscsi_nopin *); | 367 | extern void iscsi_update_cmdsn(struct iscsi_session *, struct iscsi_nopin *); |
368 | extern void iscsi_prep_unsolicit_data_pdu(struct iscsi_cmd_task *, | 368 | extern void iscsi_prep_unsolicit_data_pdu(struct iscsi_task *, |
369 | struct iscsi_data *hdr); | 369 | struct iscsi_data *hdr); |
370 | extern int iscsi_conn_send_pdu(struct iscsi_cls_conn *, struct iscsi_hdr *, | 370 | extern int iscsi_conn_send_pdu(struct iscsi_cls_conn *, struct iscsi_hdr *, |
371 | char *, uint32_t); | 371 | char *, uint32_t); |
372 | extern int iscsi_complete_pdu(struct iscsi_conn *, struct iscsi_hdr *, | 372 | extern int iscsi_complete_pdu(struct iscsi_conn *, struct iscsi_hdr *, |
373 | char *, int); | 373 | char *, int); |
374 | extern int iscsi_verify_itt(struct iscsi_conn *, itt_t); | 374 | extern int iscsi_verify_itt(struct iscsi_conn *, itt_t); |
375 | extern struct iscsi_cmd_task *iscsi_itt_to_ctask(struct iscsi_conn *, itt_t); | 375 | extern struct iscsi_task *iscsi_itt_to_ctask(struct iscsi_conn *, itt_t); |
376 | extern void iscsi_requeue_ctask(struct iscsi_cmd_task *ctask); | 376 | extern void iscsi_requeue_task(struct iscsi_task *task); |
377 | extern void iscsi_put_ctask(struct iscsi_cmd_task *ctask); | 377 | extern void iscsi_put_task(struct iscsi_task *task); |
378 | 378 | ||
379 | /* | 379 | /* |
380 | * generic helpers | 380 | * generic helpers |