aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_transport_iscsi.h
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2006-04-06 22:13:33 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-04-14 15:02:43 -0400
commitb5c7a12dc29ae0990d9e867749bdd717a3160325 (patch)
tree66bb4b7fd02e5a8a89f385aadf80a666ac941fbe /include/scsi/scsi_transport_iscsi.h
parent13f7e5acc8b329080672c13f05f252ace5b79825 (diff)
[SCSI] iscsi: rm kernel iscsi handles usage for session and connection
from hare@suse.de and michaelc@cs.wisc.edu hw iscsi like qla4xxx does not allocate a host per session and for userspace it is difficult to restart iscsid using the "iscsi handles" for the session and connection, so this patch just has the class or userspace allocate the id for the session and connection. Note: this breaks userspace and requires users to upgrade to the newest open-iscsi tools. Sorry about his but open-iscsi is still too new to say we have a stable user-kernel api and we were not good nough designers to know that other hw iscsi drivers and iscsid itself would need such changes. Actually we sorta did but at the time we did not have the HW available to us so we could only guess. Luckily, the only tools hooking into the class are the open-iscsi ones or other tools like iscsitart hook into the open-iscsi engine from userspace or prgroams like anaconda call our tools so they are not affected. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/scsi_transport_iscsi.h')
-rw-r--r--include/scsi/scsi_transport_iscsi.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h
index b41cf077e54b..631463cd4892 100644
--- a/include/scsi/scsi_transport_iscsi.h
+++ b/include/scsi/scsi_transport_iscsi.h
@@ -60,11 +60,13 @@ struct iscsi_transport {
60 int ihostdata_size; 60 int ihostdata_size;
61 /* LLD connection data size */ 61 /* LLD connection data size */
62 int conndata_size; 62 int conndata_size;
63 /* LLD session data size */
64 int sessiondata_size;
63 int max_lun; 65 int max_lun;
64 unsigned int max_conn; 66 unsigned int max_conn;
65 unsigned int max_cmd_len; 67 unsigned int max_cmd_len;
66 struct iscsi_cls_session *(*create_session) 68 struct iscsi_cls_session *(*create_session)
67 (struct scsi_transport_template *t, uint32_t sn, uint32_t *sid); 69 (struct scsi_transport_template *t, uint32_t sn, uint32_t *hn);
68 void (*destroy_session) (struct iscsi_cls_session *session); 70 void (*destroy_session) (struct iscsi_cls_session *session);
69 struct iscsi_cls_conn *(*create_conn) (struct iscsi_cls_session *sess, 71 struct iscsi_cls_conn *(*create_conn) (struct iscsi_cls_session *sess,
70 uint32_t cid); 72 uint32_t cid);
@@ -104,6 +106,7 @@ struct iscsi_cls_conn {
104 struct list_head conn_list; /* item in connlist */ 106 struct list_head conn_list; /* item in connlist */
105 void *dd_data; /* LLD private data */ 107 void *dd_data; /* LLD private data */
106 struct iscsi_transport *transport; 108 struct iscsi_transport *transport;
109 uint32_t cid; /* connection id */
107 int active; /* must be accessed with the connlock */ 110 int active; /* must be accessed with the connlock */
108 struct device dev; /* sysfs transport/container device */ 111 struct device dev; /* sysfs transport/container device */
109 struct mempool_zone *z_error; 112 struct mempool_zone *z_error;
@@ -117,6 +120,8 @@ struct iscsi_cls_conn {
117struct iscsi_cls_session { 120struct iscsi_cls_session {
118 struct list_head sess_list; /* item in session_list */ 121 struct list_head sess_list; /* item in session_list */
119 struct iscsi_transport *transport; 122 struct iscsi_transport *transport;
123 int sid; /* session id */
124 void *dd_data; /* LLD private data */
120 struct device dev; /* sysfs transport/container device */ 125 struct device dev; /* sysfs transport/container device */
121}; 126};
122 127