diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-05-21 16:53:59 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-12 09:22:16 -0400 |
commit | 756135215ec743be6fdce2bdebe8cdb9f8a231f6 (patch) | |
tree | 7eb0a5a23731fcd974f9e5e5d136fe6944d4761c /drivers/scsi/scsi_transport_iscsi.c | |
parent | 32c6e1b9a2e27076b7070a9ec56a9e5437ebd725 (diff) |
[SCSI] iscsi: remove session and host binding in libiscsi
bnx2i allocates a host per netdevice but will use libiscsi,
so this unbinds the session from the host in that code.
This will also be useful for the iser parent device dma settings
fixes.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r-- | drivers/scsi/scsi_transport_iscsi.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index 5577a60bec4e..9c00a157b485 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c | |||
@@ -101,12 +101,10 @@ show_transport_##name(struct device *dev, \ | |||
101 | static DEVICE_ATTR(name, S_IRUGO, show_transport_##name, NULL); | 101 | static DEVICE_ATTR(name, S_IRUGO, show_transport_##name, NULL); |
102 | 102 | ||
103 | show_transport_attr(caps, "0x%x"); | 103 | show_transport_attr(caps, "0x%x"); |
104 | show_transport_attr(max_lun, "%d"); | ||
105 | 104 | ||
106 | static struct attribute *iscsi_transport_attrs[] = { | 105 | static struct attribute *iscsi_transport_attrs[] = { |
107 | &dev_attr_handle.attr, | 106 | &dev_attr_handle.attr, |
108 | &dev_attr_caps.attr, | 107 | &dev_attr_caps.attr, |
109 | &dev_attr_max_lun.attr, | ||
110 | NULL, | 108 | NULL, |
111 | }; | 109 | }; |
112 | 110 | ||
@@ -1034,8 +1032,7 @@ iscsi_if_create_session(struct iscsi_internal *priv, struct iscsi_uevent *ev, | |||
1034 | } | 1032 | } |
1035 | } | 1033 | } |
1036 | 1034 | ||
1037 | session = transport->create_session(transport, &priv->t, shost, | 1035 | session = transport->create_session(shost, cmds_max, queue_depth, |
1038 | cmds_max, queue_depth, | ||
1039 | initial_cmdsn, &host_no); | 1036 | initial_cmdsn, &host_no); |
1040 | if (shost) | 1037 | if (shost) |
1041 | scsi_host_put(shost); | 1038 | scsi_host_put(shost); |