aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/libiscsi.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2008-05-21 16:54:04 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-12 09:22:18 -0400
commit0af967f5d4f2dd1e00618d34ac988037d37a6c3b (patch)
tree08297980d1b6dab820d22c12c7fe1c54602f2486 /include/scsi/libiscsi.h
parentb40977d95fb3a1898ace6a7d97e4ed1a33a440a4 (diff)
[SCSI] libiscsi, iscsi_tcp, iser: add session cmds array accessor
Currently to get a ctask from the session cmd array, you have to know to use the itt modifier. To make this easier on LLDs and so in the future we can easilly kill the session array and use the host shared map instead, this patch adds a nice wrapper to strip the itt into a session->cmds index and return a ctask. 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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h
index f54aeb1e8ae..9be6a70faff 100644
--- a/include/scsi/libiscsi.h
+++ b/include/scsi/libiscsi.h
@@ -385,8 +385,8 @@ extern int iscsi_conn_send_pdu(struct iscsi_cls_conn *, struct iscsi_hdr *,
385 char *, uint32_t); 385 char *, uint32_t);
386extern int iscsi_complete_pdu(struct iscsi_conn *, struct iscsi_hdr *, 386extern int iscsi_complete_pdu(struct iscsi_conn *, struct iscsi_hdr *,
387 char *, int); 387 char *, int);
388extern int iscsi_verify_itt(struct iscsi_conn *, struct iscsi_hdr *, 388extern int iscsi_verify_itt(struct iscsi_conn *, itt_t);
389 uint32_t *); 389extern struct iscsi_cmd_task *iscsi_itt_to_ctask(struct iscsi_conn *, itt_t);
390extern void iscsi_requeue_ctask(struct iscsi_cmd_task *ctask); 390extern void iscsi_requeue_ctask(struct iscsi_cmd_task *ctask);
391extern void iscsi_free_mgmt_task(struct iscsi_conn *conn, 391extern void iscsi_free_mgmt_task(struct iscsi_conn *conn,
392 struct iscsi_mgmt_task *mtask); 392 struct iscsi_mgmt_task *mtask);