aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxgb3i
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-03-05 15:46:06 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-13 16:29:39 -0400
commit5e7facb77ff4b6961d936773fb1f175f7abf76b7 (patch)
treed94349cb57a1ef07528e23ac043ca0e1a3eeceb3 /drivers/scsi/cxgb3i
parent40a06e755d8524cd0b24f795e8bdce5ad19fc41b (diff)
[SCSI] iscsi class: remove host no argument from session creation callout
We do not need to have llds set the host no for the session's parent, because we know the session's parent is going to be the host. This removes it from the session creation callback and converts the drivers. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/cxgb3i')
-rw-r--r--drivers/scsi/cxgb3i/cxgb3i_iscsi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/cxgb3i/cxgb3i_iscsi.c b/drivers/scsi/cxgb3i/cxgb3i_iscsi.c
index 307f55e329f5..ae4a93090725 100644
--- a/drivers/scsi/cxgb3i/cxgb3i_iscsi.c
+++ b/drivers/scsi/cxgb3i/cxgb3i_iscsi.c
@@ -334,13 +334,12 @@ static void cxgb3i_ep_disconnect(struct iscsi_endpoint *ep)
334 * @cmds_max: max # of commands 334 * @cmds_max: max # of commands
335 * @qdepth: scsi queue depth 335 * @qdepth: scsi queue depth
336 * @initial_cmdsn: initial iscsi CMDSN for this session 336 * @initial_cmdsn: initial iscsi CMDSN for this session
337 * @host_no: pointer to return host no
338 * 337 *
339 * Creates a new iSCSI session 338 * Creates a new iSCSI session
340 */ 339 */
341static struct iscsi_cls_session * 340static struct iscsi_cls_session *
342cxgb3i_session_create(struct iscsi_endpoint *ep, u16 cmds_max, u16 qdepth, 341cxgb3i_session_create(struct iscsi_endpoint *ep, u16 cmds_max, u16 qdepth,
343 u32 initial_cmdsn, u32 *host_no) 342 u32 initial_cmdsn)
344{ 343{
345 struct cxgb3i_endpoint *cep; 344 struct cxgb3i_endpoint *cep;
346 struct cxgb3i_hba *hba; 345 struct cxgb3i_hba *hba;
@@ -359,8 +358,6 @@ cxgb3i_session_create(struct iscsi_endpoint *ep, u16 cmds_max, u16 qdepth,
359 cxgb3i_api_debug("ep 0x%p, cep 0x%p, hba 0x%p.\n", ep, cep, hba); 358 cxgb3i_api_debug("ep 0x%p, cep 0x%p, hba 0x%p.\n", ep, cep, hba);
360 BUG_ON(hba != iscsi_host_priv(shost)); 359 BUG_ON(hba != iscsi_host_priv(shost));
361 360
362 *host_no = shost->host_no;
363
364 cls_session = iscsi_session_setup(&cxgb3i_iscsi_transport, shost, 361 cls_session = iscsi_session_setup(&cxgb3i_iscsi_transport, shost,
365 cmds_max, 362 cmds_max,
366 sizeof(struct iscsi_tcp_task) + 363 sizeof(struct iscsi_tcp_task) +