diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2009-05-13 18:57:41 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-05-23 16:44:10 -0400 |
commit | 8f9256cea10ca43ac80f66e176643eb41db34244 (patch) | |
tree | 041a928f5ad598c60c9b9934a22c5714cc92170d | |
parent | 5700b1af93388544843a453e3c68f8f928bd1e88 (diff) |
[SCSI] libiscsi: export iscsi_itt_to_task for bnx2i
bnx2i needs to be able to look up mgmt task like login and nop, because
it does some processing of them on the completion path. This exports
iscsi_itt_to_task so it can look up the task.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r-- | drivers/scsi/libiscsi.c | 3 | ||||
-rw-r--r-- | include/scsi/libiscsi.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index b4aaf2e5fe7a..a6e6eef04fed 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c | |||
@@ -828,7 +828,7 @@ static int iscsi_handle_reject(struct iscsi_conn *conn, struct iscsi_hdr *hdr, | |||
828 | * | 828 | * |
829 | * The session lock must be held. | 829 | * The session lock must be held. |
830 | */ | 830 | */ |
831 | static struct iscsi_task *iscsi_itt_to_task(struct iscsi_conn *conn, itt_t itt) | 831 | struct iscsi_task *iscsi_itt_to_task(struct iscsi_conn *conn, itt_t itt) |
832 | { | 832 | { |
833 | struct iscsi_session *session = conn->session; | 833 | struct iscsi_session *session = conn->session; |
834 | int i; | 834 | int i; |
@@ -845,6 +845,7 @@ static struct iscsi_task *iscsi_itt_to_task(struct iscsi_conn *conn, itt_t itt) | |||
845 | 845 | ||
846 | return session->cmds[i]; | 846 | return session->cmds[i]; |
847 | } | 847 | } |
848 | EXPORT_SYMBOL_GPL(iscsi_itt_to_task); | ||
848 | 849 | ||
849 | /** | 850 | /** |
850 | * __iscsi_complete_pdu - complete pdu | 851 | * __iscsi_complete_pdu - complete pdu |
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 0289f5745fb9..88d33a46efa5 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -406,6 +406,7 @@ extern int __iscsi_complete_pdu(struct iscsi_conn *, struct iscsi_hdr *, | |||
406 | char *, int); | 406 | char *, int); |
407 | extern int iscsi_verify_itt(struct iscsi_conn *, itt_t); | 407 | extern int iscsi_verify_itt(struct iscsi_conn *, itt_t); |
408 | extern struct iscsi_task *iscsi_itt_to_ctask(struct iscsi_conn *, itt_t); | 408 | extern struct iscsi_task *iscsi_itt_to_ctask(struct iscsi_conn *, itt_t); |
409 | extern struct iscsi_task *iscsi_itt_to_task(struct iscsi_conn *, itt_t); | ||
409 | extern void iscsi_requeue_task(struct iscsi_task *task); | 410 | extern void iscsi_requeue_task(struct iscsi_task *task); |
410 | extern void iscsi_put_task(struct iscsi_task *task); | 411 | extern void iscsi_put_task(struct iscsi_task *task); |
411 | extern void __iscsi_get_task(struct iscsi_task *task); | 412 | extern void __iscsi_get_task(struct iscsi_task *task); |