diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-05-21 16:54:12 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-12 09:22:20 -0400 |
commit | 7970634b81a6e3561954517bca42615542c4535b (patch) | |
tree | e8a6aea24c5db8c1198173b75945746333cdbd4d /include/scsi/libiscsi.h | |
parent | 2261ec3d686e35c1a6088ab7f00a1d02b528b994 (diff) |
[SCSI] iscsi class: user device_for_each_child instead of duplicating session list
Currently we duplicate the list of sessions, because we were using the
test for if a session was on the host list to indicate if the session
was bound or unbound. We can instead use the target_id and fix up
the class so that drivers like bnx2i do not have to manage the target id
space.
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index 176353c117b6..13c92d7ba969 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h | |||
@@ -331,7 +331,7 @@ extern void iscsi_host_free(struct Scsi_Host *shost); | |||
331 | */ | 331 | */ |
332 | extern struct iscsi_cls_session * | 332 | extern struct iscsi_cls_session * |
333 | iscsi_session_setup(struct iscsi_transport *, struct Scsi_Host *shost, | 333 | iscsi_session_setup(struct iscsi_transport *, struct Scsi_Host *shost, |
334 | uint16_t, int, uint32_t); | 334 | uint16_t, int, uint32_t, unsigned int); |
335 | extern void iscsi_session_teardown(struct iscsi_cls_session *); | 335 | extern void iscsi_session_teardown(struct iscsi_cls_session *); |
336 | extern void iscsi_session_recovery_timedout(struct iscsi_cls_session *); | 336 | extern void iscsi_session_recovery_timedout(struct iscsi_cls_session *); |
337 | extern int iscsi_set_param(struct iscsi_cls_conn *cls_conn, | 337 | extern int iscsi_set_param(struct iscsi_cls_conn *cls_conn, |