aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2008-05-21 16:54:12 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-12 09:22:20 -0400
commit7970634b81a6e3561954517bca42615542c4535b (patch)
treee8a6aea24c5db8c1198173b75945746333cdbd4d /drivers/infiniband
parent2261ec3d686e35c1a6088ab7f00a1d02b528b994 (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 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c
index 86d9c42f0d33..3a89039e9a96 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.c
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
@@ -437,7 +437,7 @@ iscsi_iser_session_create(struct Scsi_Host *shost,
437 cls_session = iscsi_session_setup(&iscsi_iser_transport, shost, 437 cls_session = iscsi_session_setup(&iscsi_iser_transport, shost,
438 ISCSI_DEF_XMIT_CMDS_MAX, 438 ISCSI_DEF_XMIT_CMDS_MAX,
439 sizeof(struct iscsi_iser_task), 439 sizeof(struct iscsi_iser_task),
440 initial_cmdsn); 440 initial_cmdsn, 0);
441 if (!cls_session) 441 if (!cls_session)
442 goto remove_host; 442 goto remove_host;
443 session = cls_session->dd_data; 443 session = cls_session->dd_data;