diff options
Diffstat (limited to 'include/scsi/libiscsi.h')
-rw-r--r-- | include/scsi/libiscsi.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index ae5196aae1a5..0f4367751b71 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -89,6 +89,7 @@ enum { | |||
89 | ISCSI_TASK_RUNNING, | 89 | ISCSI_TASK_RUNNING, |
90 | ISCSI_TASK_ABRT_TMF, /* aborted due to TMF */ | 90 | ISCSI_TASK_ABRT_TMF, /* aborted due to TMF */ |
91 | ISCSI_TASK_ABRT_SESS_RECOV, /* aborted due to session recovery */ | 91 | ISCSI_TASK_ABRT_SESS_RECOV, /* aborted due to session recovery */ |
92 | ISCSI_TASK_REQUEUE_SCSIQ, /* qcmd requeueing to scsi-ml */ | ||
92 | }; | 93 | }; |
93 | 94 | ||
94 | struct iscsi_r2t_info { | 95 | struct iscsi_r2t_info { |
@@ -211,9 +212,6 @@ struct iscsi_conn { | |||
211 | /* values userspace uses to id a conn */ | 212 | /* values userspace uses to id a conn */ |
212 | int persistent_port; | 213 | int persistent_port; |
213 | char *persistent_address; | 214 | char *persistent_address; |
214 | /* remote portal currently connected to */ | ||
215 | int portal_port; | ||
216 | char portal_address[ISCSI_ADDRESS_BUF_LEN]; | ||
217 | 215 | ||
218 | /* MIB-statistics */ | 216 | /* MIB-statistics */ |
219 | uint64_t txdata_octets; | 217 | uint64_t txdata_octets; |
@@ -318,9 +316,6 @@ struct iscsi_host { | |||
318 | /* hw address or netdev iscsi connection is bound to */ | 316 | /* hw address or netdev iscsi connection is bound to */ |
319 | char *hwaddress; | 317 | char *hwaddress; |
320 | char *netdev; | 318 | char *netdev; |
321 | /* local address */ | ||
322 | int local_port; | ||
323 | char local_address[ISCSI_ADDRESS_BUF_LEN]; | ||
324 | 319 | ||
325 | wait_queue_head_t session_removal_wq; | 320 | wait_queue_head_t session_removal_wq; |
326 | /* protects sessions and state */ | 321 | /* protects sessions and state */ |
@@ -341,8 +336,7 @@ extern int iscsi_eh_abort(struct scsi_cmnd *sc); | |||
341 | extern int iscsi_eh_recover_target(struct scsi_cmnd *sc); | 336 | extern int iscsi_eh_recover_target(struct scsi_cmnd *sc); |
342 | extern int iscsi_eh_session_reset(struct scsi_cmnd *sc); | 337 | extern int iscsi_eh_session_reset(struct scsi_cmnd *sc); |
343 | extern int iscsi_eh_device_reset(struct scsi_cmnd *sc); | 338 | extern int iscsi_eh_device_reset(struct scsi_cmnd *sc); |
344 | extern int iscsi_queuecommand(struct scsi_cmnd *sc, | 339 | extern int iscsi_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc); |
345 | void (*done)(struct scsi_cmnd *)); | ||
346 | 340 | ||
347 | /* | 341 | /* |
348 | * iSCSI host helpers. | 342 | * iSCSI host helpers. |
@@ -394,6 +388,8 @@ extern void iscsi_session_failure(struct iscsi_session *session, | |||
394 | enum iscsi_err err); | 388 | enum iscsi_err err); |
395 | extern int iscsi_conn_get_param(struct iscsi_cls_conn *cls_conn, | 389 | extern int iscsi_conn_get_param(struct iscsi_cls_conn *cls_conn, |
396 | enum iscsi_param param, char *buf); | 390 | enum iscsi_param param, char *buf); |
391 | extern int iscsi_conn_get_addr_param(struct sockaddr_storage *addr, | ||
392 | enum iscsi_param param, char *buf); | ||
397 | extern void iscsi_suspend_tx(struct iscsi_conn *conn); | 393 | extern void iscsi_suspend_tx(struct iscsi_conn *conn); |
398 | extern void iscsi_suspend_queue(struct iscsi_conn *conn); | 394 | extern void iscsi_suspend_queue(struct iscsi_conn *conn); |
399 | extern void iscsi_conn_queue_work(struct iscsi_conn *conn); | 395 | extern void iscsi_conn_queue_work(struct iscsi_conn *conn); |
@@ -420,6 +416,7 @@ extern struct iscsi_task *iscsi_itt_to_ctask(struct iscsi_conn *, itt_t); | |||
420 | extern struct iscsi_task *iscsi_itt_to_task(struct iscsi_conn *, itt_t); | 416 | extern struct iscsi_task *iscsi_itt_to_task(struct iscsi_conn *, itt_t); |
421 | extern void iscsi_requeue_task(struct iscsi_task *task); | 417 | extern void iscsi_requeue_task(struct iscsi_task *task); |
422 | extern void iscsi_put_task(struct iscsi_task *task); | 418 | extern void iscsi_put_task(struct iscsi_task *task); |
419 | extern void __iscsi_put_task(struct iscsi_task *task); | ||
423 | extern void __iscsi_get_task(struct iscsi_task *task); | 420 | extern void __iscsi_get_task(struct iscsi_task *task); |
424 | extern void iscsi_complete_scsi_task(struct iscsi_task *task, | 421 | extern void iscsi_complete_scsi_task(struct iscsi_task *task, |
425 | uint32_t exp_cmdsn, uint32_t max_cmdsn); | 422 | uint32_t exp_cmdsn, uint32_t max_cmdsn); |