aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2008-05-21 16:54:15 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-12 09:22:21 -0400
commit06520edea0fc7007985fa4cd51560149feb3f442 (patch)
tree0bd81fee9e656118914cf9f7620914f5e88d6b2c /drivers/scsi
parent412eeafa0a51a8d86545d0be637bf84e4374fccf (diff)
[SCSI] iscsi_tcp: hook iscsi_tcp into iscsi_endpoint code
iscsi_tcp creates its ep in userspace using sockets because it is virtual, so we just check if we are sent a ep and fail if we are. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/iscsi_tcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index aa3c7f0c550d..92d031959002 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -1838,17 +1838,17 @@ iscsi_conn_get_stats(struct iscsi_cls_conn *cls_conn, struct iscsi_stats *stats)
1838} 1838}
1839 1839
1840static struct iscsi_cls_session * 1840static struct iscsi_cls_session *
1841iscsi_tcp_session_create(struct Scsi_Host *shost, uint16_t cmds_max, 1841iscsi_tcp_session_create(struct iscsi_endpoint *ep, uint16_t cmds_max,
1842 uint16_t qdepth, uint32_t initial_cmdsn, 1842 uint16_t qdepth, uint32_t initial_cmdsn,
1843 uint32_t *hostno) 1843 uint32_t *hostno)
1844{ 1844{
1845 struct iscsi_cls_session *cls_session; 1845 struct iscsi_cls_session *cls_session;
1846 struct iscsi_session *session; 1846 struct iscsi_session *session;
1847 struct Scsi_Host *shost;
1847 int cmd_i; 1848 int cmd_i;
1848 1849
1849 if (shost) { 1850 if (ep) {
1850 printk(KERN_ERR "iscsi_tcp: invalid shost %d.\n", 1851 printk(KERN_ERR "iscsi_tcp: invalid ep %p.\n", ep);
1851 shost->host_no);
1852 return NULL; 1852 return NULL;
1853 } 1853 }
1854 1854