diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-05-21 16:54:09 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-12 09:22:19 -0400 |
commit | 9c19a7d0387124a508d2cdb38ebf8cd484631ad0 (patch) | |
tree | 3c7022cd03fee32e1eb290396fe780049f095449 /include/scsi | |
parent | 2747fdb25726caa1a89229f43d99ca50af72576a (diff) |
[SCSI] libiscsi: rename iscsi_cmd_task to iscsi_task
This is the second part of the iscsi task merging, and
all it does it rename iscsi_cmd_task to iscsi_task and
mtask/ctask to just task.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/libiscsi.h | 22 | ||||
-rw-r--r-- | include/scsi/scsi_transport_iscsi.h | 8 |
2 files changed, 15 insertions, 15 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index d1c36759b35..176353c117b 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 |
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h index 3f24503dfdf..0553240796e 100644 --- a/include/scsi/scsi_transport_iscsi.h +++ b/include/scsi/scsi_transport_iscsi.h | |||
@@ -33,7 +33,7 @@ struct iscsi_transport; | |||
33 | struct Scsi_Host; | 33 | struct Scsi_Host; |
34 | struct iscsi_cls_conn; | 34 | struct iscsi_cls_conn; |
35 | struct iscsi_conn; | 35 | struct iscsi_conn; |
36 | struct iscsi_cmd_task; | 36 | struct iscsi_task; |
37 | struct sockaddr; | 37 | struct sockaddr; |
38 | 38 | ||
39 | /** | 39 | /** |
@@ -112,10 +112,10 @@ struct iscsi_transport { | |||
112 | char *data, uint32_t data_size); | 112 | char *data, uint32_t data_size); |
113 | void (*get_stats) (struct iscsi_cls_conn *conn, | 113 | void (*get_stats) (struct iscsi_cls_conn *conn, |
114 | struct iscsi_stats *stats); | 114 | struct iscsi_stats *stats); |
115 | int (*init_task) (struct iscsi_cmd_task *task); | 115 | int (*init_task) (struct iscsi_task *task); |
116 | int (*xmit_task) (struct iscsi_cmd_task *task); | 116 | int (*xmit_task) (struct iscsi_task *task); |
117 | void (*cleanup_task) (struct iscsi_conn *conn, | 117 | void (*cleanup_task) (struct iscsi_conn *conn, |
118 | struct iscsi_cmd_task *task); | 118 | struct iscsi_task *task); |
119 | void (*session_recovery_timedout) (struct iscsi_cls_session *session); | 119 | void (*session_recovery_timedout) (struct iscsi_cls_session *session); |
120 | int (*ep_connect) (struct sockaddr *dst_addr, int non_blocking, | 120 | int (*ep_connect) (struct sockaddr *dst_addr, int non_blocking, |
121 | uint64_t *ep_handle); | 121 | uint64_t *ep_handle); |