diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-05-21 16:53:56 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-12 09:22:15 -0400 |
commit | 40753caa364bfba60ebd5e2a8bdf366ef175d03c (patch) | |
tree | ed43045b841521eb9c9fedc08d603df89a77cf6f /drivers/scsi/iscsi_tcp.c | |
parent | d54d48b80fb523ce1b1a644e4876b08835ad757f (diff) |
[SCSI] iscsi class, iscsi_tcp/iser: add host arg to session creation
iscsi offload (bnx2i and qla4xx) allocate a scsi host per hba,
so the session creation path needs a shost/host_no argument.
Software iscsi/iser will follow the same behabior as before
where it allcoates a host per session, but in the future iser
will probably look more like bnx2i where the host's parent is
the hardware (rnic for iser and for bnx2i it is the nic), because
it does not use a socket layer like how iscsi_tcp does.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
-rw-r--r-- | drivers/scsi/iscsi_tcp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 72b9b2a0eba3..81c421a7d477 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c | |||
@@ -1871,8 +1871,9 @@ iscsi_conn_get_stats(struct iscsi_cls_conn *cls_conn, struct iscsi_stats *stats) | |||
1871 | static struct iscsi_cls_session * | 1871 | static struct iscsi_cls_session * |
1872 | iscsi_tcp_session_create(struct iscsi_transport *iscsit, | 1872 | iscsi_tcp_session_create(struct iscsi_transport *iscsit, |
1873 | struct scsi_transport_template *scsit, | 1873 | struct scsi_transport_template *scsit, |
1874 | uint16_t cmds_max, uint16_t qdepth, | 1874 | struct Scsi_Host *shost, uint16_t cmds_max, |
1875 | uint32_t initial_cmdsn, uint32_t *hostno) | 1875 | uint16_t qdepth, uint32_t initial_cmdsn, |
1876 | uint32_t *hostno) | ||
1876 | { | 1877 | { |
1877 | struct iscsi_cls_session *cls_session; | 1878 | struct iscsi_cls_session *cls_session; |
1878 | struct iscsi_session *session; | 1879 | struct iscsi_session *session; |